05.03.2011, 17:44
Hello people,
I have the following code:
oke so the first time it works and when i enable the timer again it wont work anymore :S
in the timer function i have this code to stop the timer:
so the problem is that the first time there is no problem but when i call the timer again the timer just wont start :S i tested it with SendClientMessage
I have the following code:
pawn Код:
new PlayerTimer[MAX_PLAYERS];
PlayerTimer[playerid] = SetTimerEx("MoveObject", 50, 1, "i", playerid);
in the timer function i have this code to stop the timer:
pawn Код:
if(key1 == KEY_FIRE && scanactive[playerid] != 0)
{
KillTimer(PlayerTimer[playerid]);
PlayerTimer[playerid] = 0;
}