10.04.2012, 19:52
(
Последний раз редактировалось VeryGooD; 10.04.2012 в 20:32.
)
hey guys
i have a little problem with the timer:
well, this callback works fine, he counts, but the gamemodtext not fast enough and this situation creates delay.
it works like that:
0:0
0:5
0:11
and that's because the gamemodtext,it takes him 5.9 seconds disappear
can i get some help here?
i have a little problem with the timer:
Quote:
new counter[256]; public timer(playerid){ format(counter,sizeof(counter),"%d:%d",minutes[playerid],seconds[playerid]); GameTextForPlayer(GetFullNameID(TheInviter[playerid]), counter,1000,1); GameTextForPlayer(playerid,counter,1000,1); seconds[playerid]++; if(seconds[playerid]==60){ seconds[playerid]=0; minutes[playerid]++; } SetTimerEx("timer", 1000, false, "d", playerid); return 1; } |
it works like that:
0:0
0:5
0:11
and that's because the gamemodtext,it takes him 5.9 seconds disappear
can i get some help here?