SA-MP Forums Archive
Help with dialog list - 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: Help with dialog list (/showthread.php?tid=544339)



Help with dialog list - dionisak0s - 01.11.2014

Is there any easy way to make the prices look nicely like a column?




Re: Help with dialog list - Runn3R - 01.11.2014

No. Just do it like Teargas - $800


Re: Help with dialog list - dionisak0s - 01.11.2014

Quote:
Originally Posted by Runn3R
Посмотреть сообщение
No. Just do it like Teargas - $800
Nah, you may like it but I don't. That thing already came up to my mind but I didn't like the way it looks.


Re: Help with dialog list - BroZeus - 01.11.2014

Yep there is
use '\t' for tabulating the data
example-
Quote:

new string[] ="TearGas\t\t$800\nSprayCan\t\t$800\n9mm Pistol\t\t$1000";

The output would be clean


Re: Help with dialog list - dionisak0s - 01.11.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
Yep there is
use '\t' for tabulating the data
example-

The output would be clean
I used that on ShowPlayerDialog and here are my results.
Shall I make it like you told me?



Re: Help with dialog list - BroZeus - 01.11.2014

use three '\t' between gunname and gun price
Use it three '\t' between every gunname and its price not just some...


Re: Help with dialog list - dionisak0s - 01.11.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
use three '\t' between gunname and gun price
Use it three '\t' between every gunname and its price not just some...
I used two but now it's fixed, thanks a lot. Plus you received 1 reputation from me.

Edit 2:
Can I add more than three '/t'?


Re: Help with dialog list - BroZeus - 01.11.2014

Yes you can
more '\t' = more space


Re: Help with dialog list - dionisak0s - 01.11.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
Yes you can
more '\t' = more space
So if I am not wrong '/t' stands for a big space like when you press TAB in pawn.


Re: Help with dialog list - BroZeus - 01.11.2014

Tabulated space* actually
look in ****** for understanding it..