GameTextForPlayer doesn't stay on for long
#1

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

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

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

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)