weird gametext problem.
#1

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

with ~n~ you make a new line .. maybe the style number 6 dont support the new line try with 3
Reply
#3

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

remove the last space " " from the string. it could work
Код:
format(sm_str, 128, "~r~Slimnica~n~~y~ atlikusas %i sekundes", sekundes);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)