16.08.2011, 09:29
Your code is extremely messy, the problem is taht there's probably a logic path in the code in which the KillTimer function does not exist therefore it never ends. You are going to need to figure that out for yourself. Although there's another logical problem too, this will only ever work for a player with the ID of 0, because you're passing any playerid to the function even though you're expecting one? Why do that?
You need to pass a playerid to the callback in order for it to work as you're expecting it to, for example:
Doesn't that make more sense? Anyway like I said there's most likely a path in which the KillTimer function is not called, therefore the timer isn't ended, you need to fix that. I can tell by looking at it there's probably an issue with the fact that you're only checking if "usataken" or "europtaken" are 1 only when the counter variable is 20, so it has to be at 20 for the timer to be killed.
You need to pass a playerid to the callback in order for it to work as you're expecting it to, for example:
pawn Код:
SetTimerEx("count1", 1000, 1, "i", playerid);