GUI Text Allignment - 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: GUI Text Allignment (
/showthread.php?tid=307310)
GUI Text Allignment -
HondaCBR - 30.12.2011
Is there a way to allign text in the middle in GUI dialog menu?
As you can see im trying to guess what goes where, but it still doesnt match up, how can a i allign things? Thx.
pawn Код:
format(option1,sizeof(option1),"R: %dh %dm",PlayerInfo[playerid][pH],PlayerInfo[playerid][pMin]);
format(option2,sizeof(option2),"B: $%d",PlayerInfo[playerid][pCash]);
format(option3,sizeof(option3),"BD: $%d",PlayerInfo[playerid][pBank]);
format(option4,sizeof(option4),"A: %d",PlayerInfo[playerid][pTel]);
it doesnt quiet work out this way... :/
Re: GUI Text Allignment -
Anthony_X - 30.12.2011
Try to do a space before the text, like befor the zero | 0| and like the others same make a new line
Re: GUI Text Allignment -
§с†¶e®РµРe - 30.12.2011
If you want to leave the same amount of gap in the text then instead of putting spaces write \t.Like \n gives a new line in dialog \t gives a space.
It is like pressing Tab in pawno.
Re: GUI Text Allignment -
Anthony_X - 30.12.2011
oh thank too i think need create space and now you said need do /t so thank you now im know more thing
Re: GUI Text Allignment -
§с†¶e®РµРe - 30.12.2011
No problem btw its not /t its \t !!