Why my gametext dont show? - 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: Why my gametext dont show? (
/showthread.php?tid=337870)
Why my gametext dont show? -
Admigo - 28.04.2012
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
Re: Why my gametext dont show? -
James Coral - 28.04.2012
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");
Re: Why my gametext dont show? -
zSuYaNw - 28.04.2012
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");
Re: Why my gametext dont show? -
Admigo - 28.04.2012
Its still not showing up,testing both codes.
Re: Why my gametext dont show? -
Admigo - 28.04.2012
If i dont use a string the gametext show up but without the player name and id because i deleted that