Problem killing timer
#4

You also wrote inside loops playerid instead of "i":
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
                if(IsPlayerConnected(i) && (IsACop(i) || IsAFiremen(i))
                {
                    if((PlayerInfo[i][pDuty] == 1 && IsACop(i)) || (IsPlayerAdmin(i) && IsACop(i)))
                    {
                        SetPlayerMarkerForPlayer(i, i, COLOR_YELLOW);
                    }
                    if(JobDuty[i] == 1 && IsAFiremen(i))
                    {
                        SetPlayerMarkerForPlayer(i, i, COLOR_YELLOW);
                    }
                    //GameTextForPlayer(playerid, "~w~Searching for vehicles...", 11000, 5);
                    DispatchAlertVar[i] = SetTimerEx("DispatchAlert",10000,true, "i", i);
                }
            }
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if (IsPlayerConnected(i) && (IsACop(i) || (IsAFiremen(i)|| IsPlayerAdmin(i)))
                {
                    KillTimer(DispatchAlertVar[i]);
                    SetPlayerMarkerForPlayer(i, i, TEAM_HIT_COLOR);
                    //GameTextForPlayer(playerid, "~w~DVDS Powering Down......", 1000, 5);
                    GameTextForPlayer(i, "~w~Powering Down...", 11000, 5);
                }
Reply


Messages In This Thread
Problem killing timer - by jakejohnsonusa - 23.04.2013, 20:46
AW: Problem killing timer - by HurtLocker - 23.04.2013, 20:53
Re: Problem killing timer - by cessil - 23.04.2013, 20:56
AW: Problem killing timer - by HurtLocker - 23.04.2013, 21:00
Re: Problem killing timer - by jakejohnsonusa - 23.04.2013, 22:09

Forum Jump:


Users browsing this thread: 2 Guest(s)