Timers mixed up again
#1

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..

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;
}
Please help.
Reply


Messages In This Thread
Timers mixed up again - by bartje01 - 04.12.2011, 12:50
Re: Timers mixed up again - by Thresholdold - 04.12.2011, 12:51
Re: Timers mixed up again - by nmader - 04.12.2011, 13:10
Re: Timers mixed up again - by bartje01 - 04.12.2011, 15:35
Re: Timers mixed up again - by Babul - 04.12.2011, 16:49
Re: Timers mixed up again - by bartje01 - 04.12.2011, 21:12
Re: Timers mixed up again - by bartje01 - 04.12.2011, 23:35
Re: Timers mixed up again - by Babul - 05.12.2011, 03:16
Re: Timers mixed up again - by bartje01 - 05.12.2011, 05:40
Re: Timers mixed up again - by Babul - 05.12.2011, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)