SetTimerEx problem - 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: SetTimerEx problem (
/showthread.php?tid=387809)
SetTimerEx problem -
|zEd - 26.10.2012
Yo,
This is what I have in my code, under OnPlayerKeyStateChange.
pawn Код:
SetTimerEx("pause", 5000, false, "d", playerid);
This is the public in response to that timer (it's forwarded):
pawn Код:
public pause()
{
PlayerInfo[playerid][Pause] = 0;
print("Pausetimer ended()");
}
I get this error within the public pause():
Quote:
error 017: undefined symbol "playerid"
|
Any ideas? Thank you!
Re: SetTimerEx problem -
JaKe Elite - 26.10.2012
must be
PHP код:
forward pause(playerid);
public pause(playerid)
{
PlayerInfo[playerid][Pause] = 0;
print("Pausetimer ended()");
}