I have been on several MUDs (good ones are hard to find these days) and I have realized that many of them have formatted who lists. What I mean by this is that everything is spaced nicely. I decided I want to do the same thing, but I am stuck...
I want this format
[ lvl Class ] Name Title and all that other info
[ lvl Class ] Name Title and all that other info
There is a problem in the fact that the classes and level strings can be different lengths. I have changed the following.
This generates what I want, except it is based off of how long the class and level strings are. Is there a way I can make it a standard length so no matter what class, race, etc. it will all be uniformed with the braces?
I want this format
[ lvl Class ] Name Title and all that other info
[ lvl Class ] Name Title and all that other info
There is a problem in the fact that the classes and level strings can be different lengths. I have changed the following.
snprintf( class_text, MAX_INPUT_LENGTH, "[ %s%2d %s ]", NOT_AUTHED( wch ) ? "N" : " ", wch->level,
class_table[wch->Class]->who_name );This generates what I want, except it is based off of how long the class and level strings are. Is there a way I can make it a standard length so no matter what class, race, etc. it will all be uniformed with the braces?