01.11.2016, 10:45
I have problem with timer. I want it to go from 180 to 0.
It goes to 179 and stops there
I also tried with
But still the same
Here is SetTimerEx
What could be the problem?
PHP код:
forward Mission1TimeOut(playerid);
public Mission1TimeOut(playerid)
{
new time = 180;
if(time >= 1)
{
TimeLeftTimer(playerid);
new string[5];
time -= 1;
format(string, sizeof(string), "%i", time);
PlayerTextDrawSetString(playerid, TimerTD[playerid][1], string);
}
else
{
time = 0;
}
return 1;
}
I also tried with
PHP код:
time --;
Here is SetTimerEx
PHP код:
Mission1TimeTimer = SetTimerEx("Mission1TimeOut", 1000, false, "i", playerid);