23.04.2013, 21:00
(
Последний раз редактировалось HurtLocker; 23.04.2013 в 21:31.
)
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);
}