Re: [code] balancing names

From: James \ (
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 :).



	                   James C. Thomas Jr.   

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

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |
|    Or send 'info circle' to     |

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