SA-MP Forums Archive
GameTextForPlayer doesn't stay on for long - 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: GameTextForPlayer doesn't stay on for long (/showthread.php?tid=286460)



GameTextForPlayer doesn't stay on for long - Luis- - 28.09.2011

Hi, I am making something which uses GameTextForPlayer, I have actually set it for one day to test it but it still goes off after 1 minute. Here's my code.
pawn Код:
GameTextForPlayer(playerid, string, 86400000, 5);
I have also tried one hour, I am going to try something like 10 minutes now. Just want to see if any of you can see something wrong.


Re: GameTextForPlayer doesn't stay on for long - [Diablo] - 28.09.2011

https://sampwiki.blast.hk/wiki/GameTextStyle

according to wiki, style 5 automatically disappears after 3 seconds.


Re: GameTextForPlayer doesn't stay on for long - Luis- - 28.09.2011

Jesus, how did I not see that rofl, thanks for that.


Re: GameTextForPlayer doesn't stay on for long - grand.Theft.Otto - 28.09.2011

Quote:
Originally Posted by SA-MP Wiki
Displays for 3 seconds, regardless of what time you set.
Use style 3 or 4.


Re: GameTextForPlayer doesn't stay on for long - Luis- - 28.09.2011

Alright, how can send it to the bottom like style 5, I have tried ~n~ but no luck.


Re: GameTextForPlayer doesn't stay on for long - grand.Theft.Otto - 28.09.2011

Use multiple ~n~ new lines:

pawn Код:
format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~your string here like %s or %d",string);
GameTextForPlayer(playerid,string, 86400000, 3);



Re: GameTextForPlayer doesn't stay on for long - Luis- - 28.09.2011

Ah, I was using style 4 which I don't works works. It works with style 3 though.