weird gametext problem. - 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: weird gametext problem. (
/showthread.php?tid=267626)
weird gametext problem. -
WooTFTW - 09.07.2011
pawn Код:
sekundes = HOSPITAL_TIME - Hospital_Time[playerid];
format(sm_str, 128, "~r~Slimnica~n~~y~ atlikusas %i sekundes ", sekundes);
GameTextForPlayer(playerid, sm_str, 1500, 6);
print(sm_str);
Print: ~r~Slimnica~n~~y~ atlikusas 29 sekundes
But it shows 'Slimnica', it should be 'Slimnica~n~ atlikusas 29 sekundes'
What's wrong? Mysteriously the last part of the gametext dissapears.
Edit: It works if i put all text in one line. I still need this problem fixed..
Re: weird gametext problem. -
iJumbo - 09.07.2011
with ~n~ you make a new line .. maybe the style number 6 dont support the new line try with 3
Re: weird gametext problem. -
WooTFTW - 09.07.2011
Quote:
Originally Posted by [ISS]jumbo
with ~n~ you make a new line .. maybe the style number 6 dont support the new line try with 3
|
It does support ~n~, because it used to work before.
doesn't work with other styles.
Re: weird gametext problem. -
Babul - 09.07.2011
remove the last space " " from the string. it could work
Код:
format(sm_str, 128, "~r~Slimnica~n~~y~ atlikusas %i sekundes", sekundes);