05.06.2014, 15:09
Is there a way to speed up a timer? I mean can I decrease the interval?
Well i have tried KillTimer but it didnt work..
Here is what i did :
Step 1:
Then when i want to get half the interval :
Step 2:
But it doesnt work, when it reaches step 2, the function is validated and the second timer doesnt work
Well i have tried KillTimer but it didnt work..
Here is what i did :
Step 1:
pawn Код:
TESTTimer[playerid][TESTZONE] = SetTimer("TESTZONETimer", CountVar[TESTZONE], false);
Step 2:
pawn Код:
CountVar[TEST] = floatround(floatdiv(CountVar[TESTZONE], 2), floatround_round);
KillTimer(TESTTimer[playerid][TESTZONE]);
TESTTimer[playerid][TESTZONE] = SetTimerEx("TESTZONETimer", CountVar[TEST], false, "i", playerid);