mini problem with "killtimer"
#1

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
Reply
#2

Did you add
pawn Код:
return 1;
below
pawn Код:
KillTimer(Map);
But I think the most common cause is that you've missed parameters.
Reply
#3

In order to kill a timer, the timer must be named. In your case:
pawn Код:
new mapp;
mapp=SetTimerEx("Map",900000,0,"i",playerid);
And then you kill the timer by including the mapp inside the KillTimer function:
pawn Код:
KillTimer(mapp);
Reply
#4

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
Did you add
pawn Код:
return 1;
below
pawn Код:
KillTimer(Map);
But I think the most common cause is that you've missed parameters.
Yea i did
Reply
#5

Quote:
Originally Posted by HurtLocker
Посмотреть сообщение
In order to kill a timer, the timer must be named. In your case:
pawn Код:
new mapp;
mapp=SetTimerEx("Map",900000,0,"i",playerid);
And then you kill the timer by including the mapp inside the KillTimer function:
pawn Код:
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 © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

pawn Код:
KillTimer(mapp);
not
pawn Код:
KillTimer(Mapp);
Reply
#7

pawn is case sensitive. "Mapp" is different than "mapp"
Reply
#8

Quote:
Originally Posted by HurtLocker
Посмотреть сообщение
pawn is case sensitive. "Mapp" is different than "mapp"
ohh yea changed it now ty very much guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)