SA-MP Forums Archive
SetTimer problem? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: SetTimer problem? (/showthread.php?tid=454270)



SetTimer problem? - Hargrave - 28.07.2013

Hey everyone.

I added this to my script as a timer:
Quote:

SetTimer("SetPlayerUnMute", 1000, 1);

Using it for the unmute and mute command, but it seems like it won't work as I am getting this error:
Quote:

error 021: symbol already defined: "SetTimer"

And that error makes me get a warning. But I cannot get "Symbol is already defined" where is it defined and how shall I fix it? That is the only SetTimer I have on my script by the way. Any suggestions?


OPS I just found out that I posted this in wrong section. I thought I still was in the Scripting Help section, sorry for that. Hopefully it will get moved shortly.


Re: SetTimer problem? - JimmyCh - 28.07.2013

Did you put the Timer OnGameModeInIt? It should be there.
This could be your problem, the SetTimer("SetPlayerUnMute", 1000, 1); should be OnGameModeInIt.


Re: SetTimer problem? - Hargrave - 28.07.2013

Quote:
Originally Posted by JimmyCh
Посмотреть сообщение
Did you put the Timer OnGameModeInIt? It should be there.
This could be your problem, the SetTimer("SetPlayerUnMute", 1000, 1); should be OnGameModeInIt.
You are right, my bad. Thank you [SOLVED]