Raised This Month: $ Target: $400
 0% 

Text based table


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chuckySTAR
Member
Join Date: Mar 2008
Old 09-09-2008 , 14:11   Text based table
Reply With Quote #1

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?

Last edited by chuckySTAR; 09-09-2008 at 14:13.
chuckySTAR is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 09-09-2008 , 16:31   Re: Text based table
Reply With Quote #2

http://www.cplusplus.com/reference/c...io/printf.html
stupok is offline
chuckySTAR
Member
Join Date: Mar 2008
Old 09-09-2008 , 16:51   Re: Text based table
Reply With Quote #3

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
chuckySTAR is offline
Old 09-09-2008, 17:00
[X]-RayCat
This message has been deleted by [X]-RayCat.
stupok
Veteran Member
Join Date: Feb 2006
Old 09-09-2008 , 17:30   Re: Text based table
Reply With Quote #4

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.
stupok is offline
chuckySTAR
Member
Join Date: Mar 2008
Old 09-10-2008 , 12:54   Re: Text based table
Reply With Quote #5

ahh I got it now, thx for your help ;)
chuckySTAR is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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