AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Text based table (https://forums.alliedmods.net/showthread.php?t=77279)

chuckySTAR 09-09-2008 14:11

Text based table
 
Hey,
I want to make a text based table. For example:
++++++++++++++++++++++
Long Nameeeeeee+9823471+
short name _____+837___ +
++++++++++++++++++++++
* sorry for these "_". vbulletin does not support multiple spaces in a row

That the longest name set the length and the shorter names should fill in spaces to the setted length so that the table is more readable.


Any idea?

stupok 09-09-2008 16:31

Re: Text based table
 
http://www.cplusplus.com/reference/c...io/printf.html

chuckySTAR 09-09-2008 16:51

Re: Text based table
 
Yea thx, I knew this function already but, how can I use this in amxx?
I can't find it here:
http://www.amxmodx.org/funcwiki.php

stupok 09-09-2008 17:30

Re: Text based table
 
Code:

new buffer[32]

copy(bufer, 31, "lol")

// buffer = "lol"

format(buffer, 31, "%20s", "lol")

// buffer = "                lol"

Just read the link I posted, it has all of the variations you can use.

chuckySTAR 09-10-2008 12:54

Re: Text based table
 
ahh I got it now, thx for your help ;)


All times are GMT -4. The time now is 03:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.