Problem with KillTimer
#1

Hi!

I have problem with my timer, I can't "kill" it..

Code:

pawn Код:
new robT;
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.
Reply
#2

pawn Код:
KillTimer(robc);
Reply
#3

pawn Код:
KillTimer(robT);
Should work.
Reply
#4

Quote:
Originally Posted by McCarthy
Посмотреть сообщение
pawn Код:
KillTimer(robT);
Should work.
Thanks alot mate! .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)