SA-MP Forums Archive
Simple way to make tabling easier in dialogs? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Simple way to make tabling easier in dialogs? (/showthread.php?tid=280701)



Simple way to make tabling easier in dialogs? - BlackBank - 02.09.2011

So if you read the title, then you know what i talk about.

I know that you can use '\t', But if the string length is higher then 8, it will look terrible.
So what is a simple and nice methode do make this sort 'tables' (Like the HTML way).


Re: Simple way to make tabling easier in dialogs? - BlackBank - 02.09.2011

I have try it, and it works great. Thanks.

The way i tested it:
pawn Code:
printf("%11s %24s", "ID", "Vehicle");
printf("%11s %24s", "0", "Taxi");
printf("%11s %24s", "200", "NRG-500");
printf("%11s %24s", "13", "Hunter");
Will shows:
Code:
[18:58:55] ID          Vehicle                 
[18:58:55] 0           Taxi                    
[18:58:55] 200         NRG-500                 
[18:58:55] 13          Hunter