SA-MP Forums Archive
SetTimer help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetTimer help (/showthread.php?tid=476393)



SetTimer help - warlord321 - 18.11.2013

pawn Код:
D:\Game\RP\gamemodes\TRRP2dot3.pwn(625) : error 021: symbol already defined: "SetTimer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
SetTimer("SpeedCamsTimer", 1000, true);
how to fix this ?


Re: SetTimer help - dominik523 - 18.11.2013

check your script for public functions or stocks because SetTimer function is already defined somewhere


Re: SetTimer help - PakistaniBaba - 18.11.2013

Quote:
Originally Posted by warlord321
Посмотреть сообщение
pawn Код:
D:\Game\RP\gamemodes\TRRP2dot3.pwn(625) : error 021: symbol already defined: "SetTimer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
SetTimer("SpeedCamsTimer", 1000, true);
how to fix this ?
You already defined the SetTimer in your GM.
pawn Код:
SetTimer("SpeedCamsTimer", 1000, true);
remove this line then pawn

Then again problem occurs visit this page and found solution

https://sampforum.blast.hk/showthread.php?tid=133801


Re: SetTimer help - DanishHaq - 18.11.2013

Quote:
Originally Posted by PakistaniBaba
Посмотреть сообщение
You already defined the SetTimer in your GM.
pawn Код:
SetTimer("SpeedCamsTimer", 1000, true);
remove this line then pawn

Then again problem occurs visit this page and found solution

https://sampforum.blast.hk/showthread.php?tid=133801
That's a pointless way to fix it.

On topic: make sure you didn't include <a_samp> more than 1 time and make sure the SetTimer is in a callback.