timers
#2

pawn Код:
SetTimer(Zone, 1, 12000,);
That's wrong in so many ways. First off all, your function needs to be forwarded :forward Zone();

Second of all, check the parameters of SetTimer: SetTimer(funcname[], interval, repeating)

pawn Код:
SetTimer(Zone, 1, 12000,); // You have a , at the end
SetTimer("Zone", 1, 12000); // Function name needs "" around them.
SetTimer("Zone", 12000, 1); // You switched interval and repeating around.
So the correct code is:

pawn Код:
forward Zone();
SetTimer("Zone", 12000, 1);
Reply


Messages In This Thread
timers - by ToPhrESH - 06.07.2010, 07:43
Re: timers - by Matthias_ - 06.07.2010, 07:50
Re: timers - by ToPhrESH - 06.07.2010, 08:08
Re: timers - by Matthias_ - 06.07.2010, 08:13
Re: timers - by ToPhrESH - 06.07.2010, 08:26
Re: timers - by Matthias_ - 06.07.2010, 08:31
Re: timers - by ToPhrESH - 06.07.2010, 08:47
Re: timers - by Matthias_ - 06.07.2010, 09:05
Re: timers - by ToPhrESH - 06.07.2010, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)