A little problem with the timer
#1

hey guys

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;
}

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?
Reply


Messages In This Thread
A little problem with the timer - by VeryGooD - 10.04.2012, 19:52
Re: A little problem with the timer - by ReneG - 10.04.2012, 22:28
Re: A little problem with the timer - by VeryGooD - 10.04.2012, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)