Why my gametext dont show?
#1

Heey all,

I made a rob command with 55 % chance to rob succesfull.
But when failure i made a gametext:
Код:
new string2[256];		   
format(string2, sizeof(string2), "~r~Attempt To Rob %s(%d) Failed!! ", PlayerName(ID),ID);
GameTextForPlayer(playerid, string2, 3000, 5);
HasRobbedRecently[playerid] =60;
SendClientMessage(playerid,COLOR_RED,"Robbery Failed");
But the gametext dont show up.
Only the client message show up.

How can i fix this?

Thanks Admigo
Reply
#2

pawn Код:
new string2[256];          
format(string2, sizeof(string2), "~r~Attempt To Rob %s(%d) Failed!! ", PlayerName(ID),ID);
GameTextForPlayer(playerid, string2, 6000, 5);
HasRobbedRecently[playerid] =60;
SendClientMessage(playerid,COLOR_RED,"Robbery Failed");
Reply
#3

pawn Код:
new string2[128];
format(string2, sizeof(string2), "~r~Attempt To Rob %s(%d) Failed!! ", PlayerName(ID),ID);
GameTextForPlayer(playerid, string2, 3000, 3);
HasRobbedRecently[playerid] = 60 ;
SendClientMessage(playerid,COLOR_RED,"Robbery Failed");
Reply
#4

Its still not showing up,testing both codes.
Reply
#5

If i dont use a string the gametext show up but without the player name and id because i deleted that
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)