22.08.2013, 04:32
Ok, well... Heres my problemo... I set a timer, using SetTimerEx... BUT, when the player dies that the timer is set on, i wanna kill it... Here is what i got...
Can someone tell me why i get this error?
On this line...?
pawn Код:
forward bombtimer(Target, dynamite);
SetTimerEx("bombtimer", 3000, false, "i", Target, dynamite); // This is on my command, /plantbomb (Its a command that attaches dynamite to a target, and then starts the timer, and when the timer is done, BOOM... And so on, you get the idea...)
new dynamite; // Heres the object, the dynamite...
dynamite = CreateObject(1654, 0.0, 0.0, -1000.0, 0.0, 0.0, 0.0, 10.0);
public bombtimer(Target, dynamite) // Obviously... This is my public....
{
ExplodePlayer(Target);
DestroyObject(dynamite);
return 1;
}
KillTimer(bombtimer); //This is on OnPlayerDeath
Can someone tell me why i get this error?
Код:
error 076: syntax error in the expression, or invalid function call
Код:
KillTimer(bombtimer);