SA-MP Forums Archive
2 columns in a text dialog - 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: 2 columns in a text dialog (/showthread.php?tid=397666)



2 columns in a text dialog - Audiophr3ak - 06.12.2012


How can i format my text to make skills parameters (red numerals) go in a same column? If i use spaces it still looks messy, i wanna make a sharp divided list, something like this:

Melee:_____000/099
Pistols:____ 000/099
Shotguns:__000/099


Re: 2 columns in a text dialog - Finn - 06.12.2012

Use \t?


Re: 2 columns in a text dialog - Kyle - 06.12.2012

Use \n or /n or /t or \t for the new lines (forgot what one it is.) Then use {0F0F0F} and different colour codes for the colours.


Re: 2 columns in a text dialog - Audiophr3ak - 06.12.2012

I don't need new lines i need to make it look like 2 separated columns (without using "_" symbols):

Melee:_____000/099
Pistols:____ 000/099
Shotguns:__000/099

So u can see if i use some symbols to separate columns - it looks badly. There must be some other way to format it.


Re: 2 columns in a text dialog - Kyle - 06.12.2012

So:

{FFFFFF}Melee: {FF0000}000/099\n
{FFFFFF}Pistols: {FF0000}000/099\n
{FFFFFF}Shotguns: {FF0000}000/099


Re: 2 columns in a text dialog - Audiophr3ak - 06.12.2012

Read my upper post dude...


Re: 2 columns in a text dialog - Devilxz97 - 06.12.2012

soo what's the problem here ? i cant understand well what's the problem


Re: 2 columns in a text dialog - Audiophr3ak - 06.12.2012

The problem is to make:

BEFORE:
Melee: 000/099
Pistols: 000/099
Shotguns: 000/099

AFTER:
Melee:_____000/099
Pistols:____ 000/099
Shotguns:__000/099

Without "_" and spaces.


Re: 2 columns in a text dialog - DrSlett - 06.12.2012

use \t


Re: 2 columns in a text dialog - Audiophr3ak - 06.12.2012

Solved with double \t