ID:149136
 
[Edit] The below is not currect, the second one I show the two CTF's should be directly under eachother.. I forgot what the thing is for coding \DM doesnt work.
-------------------------

The following shows up when a player uses the verb:

Current Players online:
Players - Arena
------------------------------
AbeLincoln CTF
magicfranklinguy CTF

That is how it shows up right now, but I want it to show like this:

Current Player online:
Players - Arena
------------------------------
AbeLincoln CTF
magicfranklinguy CTF

So that it shows CTF in a row no matter how long their name is.

I got a reply, but this like 2 months ago.. I havn't worked on my game since really(been kinda busy, but finally have time to work on). The following is the reply, cant even remember who it was and forgot who the owner of My Life as a Spy is.


I have a routine that does exactly this in My Life as a >>Spy. What you need to do is make sure you are in a mono->>spaced font, so use courier. Then you need to pad all the >>names with spaces so that they are all the same length on >>display. Here's the steps for that:

1. Truncate all the names to a maximum of about 16 chars >>(or however long you wish)
2. Add about 20 spaces to the ends of each name.
3. Truncate again to the width you want (name + margin).

They will all be the same size in mono-spaced fonts now.

I have code somewhere I might be able to dig up if you >>have trouble.

I don't really understand this, if someone could show me some code it would be helpful.

It is pretty much impossible unless if you use monospace font. And that looks ugly. Basically, check the length of their names, subtract it from the spaces before CTF, and show it.