Formated GUI.
#1

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?
Reply
#2

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);
Reply
#3

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.
Reply
#4

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
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)