Problem with KillTimer - 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: Problem with KillTimer (
/showthread.php?tid=394743)
Problem with KillTimer -
davve95 - 23.11.2012
Hi!
I have problem with my timer, I can't "kill" it..
Code:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetPlayerTeam(playerid) == 3) SendClientMessage(playerid, 0xFF0000FF, "Team cops & Army can't rob");
robT = SetTimer("robc",5000,false);
SetPlayerWantedLevel(playerid,3);
return 1;
}
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
robT = KillTimer(robc);
return 1;
}
But I get:
Код:
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(699) : error 076: syntax error in the expression, or invalid function call
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(699) : warning 204: symbol is assigned a value that is never used: "robT"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Problem with KillTimer -
[KHK]Khalid - 23.11.2012
Re: Problem with KillTimer -
McCarthy - 23.11.2012
Should work.
Re: Problem with KillTimer -
davve95 - 24.11.2012
Quote:
Originally Posted by McCarthy
|
Thanks alot mate!
.