28.02.2010, 11:10
You really don't need that many loops.
Do something like that, Much simpler.
Код:
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] == 2 && PlayerInfo[i][pAduty] == 0) { format(str, 256, "Trial Admin: %s (Off Duty)", PlayerName(i)); SendClientMessage(playerid, COLOR_RED2, str); } if(PlayerInfo[i][pAdmin] == 2 && PlayerInfo[i][pAduty] == 1) { format(str, 256, "Trial Admin: %s (On Duty)", PlayerName(i)); SendClientMessage(playerid, COLOR_GREEN, str); }