PDA

View Full Version : mini problem with "killtimer"


dino_d_carter
11/06/2013, 07:41 PM
Hi i made i timer at name

SetTimerEx("Map",900000,0,"i",playerid);

When i made a command so u can stop timer /stoptimer then i did like
KillTimer(Map);

After that i got error on this : error 076: syntax error in the expression, or invalid function call

Red_Dragon.
11/06/2013, 07:45 PM
Did you add return 1;
below KillTimer(Map);
But I think the most common cause is that you've missed parameters.

HurtLocker
11/06/2013, 07:49 PM
In order to kill a timer, the timer must be named. In your case:
new mapp;
mapp=SetTimerEx("Map",900000,0,"i",playerid);

And then you kill the timer by including the mapp inside the KillTimer function:KillTimer(mapp);

dino_d_carter
11/06/2013, 07:49 PM
Did you add return 1;
below KillTimer(Map);
But I think the most common cause is that you've missed parameters.

Yea i did

dino_d_carter
11/06/2013, 07:51 PM
In order to kill a timer, the timer must be named. In your case:
new mapp;
mapp=SetTimerEx("Map",900000,0,"i",playerid);

And then you kill the timer by including the mapp inside the KillTimer function:KillTimer(mapp);

C:\Users\Dino\Documents\Dokumenti (SAMP) (RP)\SAMP Serves\Login and Register Sytem Y_INI\gamemodes\test.pwn(1069) : error 017: undefined symbol "Mapp"
C:\Users\Dino\Documents\Dokumenti (SAMP) (RP)\SAMP Serves\Login and Register Sytem Y_INI\gamemodes\test.pwn(1063) : warning 204: symbol is assigned a value that is never used: "mapp"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Areax
11/06/2013, 07:58 PM
KillTimer(mapp); not KillTimer(Mapp);

HurtLocker
11/06/2013, 07:59 PM
pawn is case sensitive. "Mapp" is different than "mapp"

dino_d_carter
11/06/2013, 08:00 PM
pawn is case sensitive. "Mapp" is different than "mapp"

ohh yea changed it now ty very much guys! :)