Timer help - 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: Timer help (
/showthread.php?tid=423773)
Timer help -
Anak - 19.03.2013
hello i have this
i have this in a command
pawn Код:
SetTimer("Unfreeze_skydive", 5*1000, false); // 5 seconds
forward:
pawn Код:
forward Unfreeze_skydive();
now
pawn Код:
public Unfreeze_skydive()
{
TogglePlayerControllable(playerid,1); // Error
SendClientMessage(playerid , COLOR_YELLOW, "You have started to skydive.");//Error
}
and there are errors
Код:
x:\xxxxxxxxxx\Airport_system.pwn(84) : error 017: undefined symbol "playerid"
x:\xxxxxxxxxx\Airport_system.pwn(85) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
please help me thanks..
Re: Timer help -
Neil. - 19.03.2013
Try:
pawn Код:
forward Unfreeze_skydive(playerid); // Edit your current one
public Unfreeze_skydive(playerid)
{
TogglePlayerControllable(playerid,1); // Error
SendClientMessage(playerid , COLOR_YELLOW, "You have started to skydive.");//Error
}
Respuesta: Timer help -
Xabi - 19.03.2013
You should have a function called: SetTimerEx("Unfreeze_skydive", TIME, 0, "d", playerid);
And change that function for:
pawn Код:
public Unfreeze_skydive(playerid)
{
TogglePlayerControllable(playerid,1); // Error
SendClientMessage(playerid , COLOR_YELLOW, "You have started to skydive.");//Error
}
Re: Timer help -
Anak - 19.03.2013
thanks <3