25.07.2013, 19:07
So, basically I have a countdown which adds 1 value to a variable, but it does too quick.. the timer is setted at 1sec.
pawn Код:
Func: MyFunc(playerid) {
Test{playerid} ++;
switch(Test{playerid}) {
case 1: SendClientMessage(playerid,-1,"1");
case 2: SendClientMessage(playerid,-1,"2");
case 3: {
KillTimer(E_TIMERS_ENUM[playerid][timer_Test]);
SendClientMessage(playerid,-1,"3");
Test{playerid} = 0;
}
}
return 1;
}
pawn Код:
E_TIMERS_ENUM[playerid][timer_Test] = SetTimerEx("MyFunc", true, 1000, "i", playerid);