KillTimer 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: KillTimer help (
/showthread.php?tid=246295)
KillTimer help -
omer5198 - 03.04.2011
how can i kill a timer if i get this error:
Code:
error 076: syntax error in the expression, or invalid function call
how can i fix it?
line:
Code:
KillTimer(Stunt_Timer);
Re: KillTimer help -
Mean - 03.04.2011
Have you added
pawn Code:
new Stunt_Timer;
Stunt_Timer = SetTimer( ... ); // Or SetTimerEx( ... )
??
Re: KillTimer help -
omer5198 - 03.04.2011
Quote:
Originally Posted by Mean
Have you added
pawn Code:
new Stunt_Timer; Stunt_Timer = SetTimer( ... ); // Or SetTimerEx( ... )
??
|
i tried it... but it didn't work... i did:
new Stunt_Timer;
and in a command:
Stunt_Timer = SetTimer("Stunt_Timer", 60000, true);
Re: KillTimer help -
omer5198 - 04.04.2011
anyone**?
Re: KillTimer help -
Sascha - 04.04.2011
are you sure you added the "new Stunt_Timer" out of a public function? (as global variable)