What the heck is worng here? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What the heck is worng here? (
/showthread.php?tid=256154)
What the heck is worng here? -
Cjgogo - 19.05.2011
Thanks Sasha for CountDown tutorial but this code is supossed to be correct(I modified with GameTextForAll to GameTextForPlayer)
pawn Код:
public CountDown()
{
new string[20];
format(string, sizeof(string), "%d seconds remained", countn);
GameTextForPlayer(playerid,string,10000,4);
countn--;
if(countn <= -1)
{
KillTimer(counttimer);
}
return 1;
}
Undefined playerid(:O?:O

O


? /facepalm)
Re: What the heck is worng here? - XFlawless - 19.05.2011
pawn Код:
public CountDown(playerid)
{
new string[20];
format(string, sizeof(string), "%d seconds remained", countn);
GameTextForPlayer(playerid,string,10000,4);
countn--;
if(countn <= -1)
{
KillTimer(counttimer);
}
return 1;
}
Re: What the heck is worng here? -
Cjgogo - 19.05.2011
thanks