23.11.2012, 19:55
Hi!
I have problem with my timer, I can't "kill" it..
Code:
But I get:
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;
}
Код:
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.