Re: [code] balancing names

From: James \ (thomajam@ucs.orst.edu)
Date: 02/11/97


Try this:



On Tue, 11 Feb 1997, Mike Sulmicki wrote:
> I put in the appropriate number of spaces to balance them out. This works
> fine, but doesnt look all that great, especially in score
> (You are a level 45     Kender   Mage.)
> [95   Dwarven Knight]
> [80       Elven Mage]
> 


  sprintf(buf1, "%s %s", whatever it is you use for race abbrevs, 
whatever it is you use for class abbrevs);

  sprintf(buf, "[%-6d%-20s]\r\n", GET_LEVEL(ch), buf1);
  send_to_char(buf, ch);

That should work for score. As to who, do something similar and it should 
work fine.

I could be wrong though, it's written in mailer and I kinda suck if I 
can't test it in the code :).

Later,

Rasdan

         =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	                   James C. Thomas Jr.
         thomajam@ucs.orst.edu            rasdan@necromium.com 

		If ya want to build, or code, check out:

		      finality.mudservices.com 5555
		   =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST