04.12.2011, 12:50
hey all. When two people are in the same timer they see eachother's timer. I'm not sure what's wrong.
First I see my timer, then I see his timer. Then I see my timer again then his again etc etc..
Please help.
First I see my timer, then I see his timer. Then I see my timer again then his again etc etc..
pawn Код:
new jacktimer[MAX_PLAYERS];
pawn Код:
jacktimer[playerid] = 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[playerid]);
}
format(String, sizeof(String), "%i", Bit16_Get(jcount,playerid));
TextDrawSetString(Textdraw8,String);
return 1;
}