03.12.2011, 14:20
Hey all. I have a countdown timer but it should only run for one person only.
When two persons are in the countdown it gets bugged.
First I see his count, then I see my count. It's flashing
When two persons are in the countdown it gets bugged.
pawn Код:
jacktimer = SetTimerEx("jcounting",1000,true,"i",playerid);
pawn Код:
public jcounting(playerid)
{
Bit16_Set(jcount,playerid,Bit16_Get(jcount,playerid) -1);
if(Bit16_Get(jcount,playerid) <1)
{
TextDrawHideForPlayer(playerid,Textdraw7);
TextDrawHideForPlayer(playerid,Textdraw8);
KillTimer(jacktimer);
}
format(String, sizeof(String), "%i", Bit16_Get(jcount,playerid));
TextDrawSetString(Textdraw8,String);
return 1;
}