Formated GUI. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Formated GUI. (
/showthread.php?tid=114690)
Formated GUI. -
Martin_M - 20.12.2009
Look, i have formated string:
Код:
format(string,128,"Las Venturas Bank\nIn your bank account is %d $.",zInfo[playerid][BankoSaskaita]);
And i show it in the gui table.
But it shows like that:
Quote:
Las Venturas BankIn your bank account is 14 $.
|
I mean it shows in the same line. What's wrong?
Re: Formated GUI. -
LarzI - 20.12.2009
You can't use \n in client messages.
Do:
pawn Код:
format(string,128,"In your bank account is %d $.",zInfo[playerid][BankoSaskaita]);
SendClientMessage(playerid, yourcolorhere, "Las Venturas Bank");
SendClientMessage(playerid, yourcolorhere, string);
Re: Formated GUI. -
Martin_M - 20.12.2009
Quote:
Originally Posted by lrZ^ aka LarzI
You can't use \n in client messages.
Do:
pawn Код:
format(string,128,"In your bank account is %d $.",zInfo[playerid][BankoSaskaita]); SendClientMessage(playerid, yourcolorhere, "Las Venturas Bank"); SendClientMessage(playerid, yourcolorhere, string);
|
Read my post again. I am talking about GUI.
Re: Formated GUI. -
Luka P. - 20.12.2009
Quote:
Originally Posted by Martin_M
Quote:
Originally Posted by lrZ^ aka LarzI
You can't use \n in client messages.
Do:
pawn Код:
format(string,128,"In your bank account is %d $.",zInfo[playerid][BankoSaskaita]); SendClientMessage(playerid, yourcolorhere, "Las Venturas Bank"); SendClientMessage(playerid, yourcolorhere, string);
|
Read my post again. I am talking about GUI.
|
Dialog ?
Try to use ~n~ instead of \n
Re: Formated GUI. -
Martin_M - 20.12.2009
Quote:
Dialog ?
Try to use ~n~ instead of \n
|
Now it shows like that:
Код:
Las Venturas Bank~n~In your bank account is 14 $
I didn't understand why this only didn't work. Other formated GUI works perfectly.