22.09.2010, 13:19
Код:
COMMAND:admins(playerid, params[]) { new admin = 0; foreach(petla, i) { if(PlayerInfo[i][pAdmin] >= 1) { format(str,sizeof(str),"%s | Admin Level: %d \n", NickName(i), PlayerInfo[i][pAdmin]); admin++; } } if(admin >= 1) { ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Online Admins", str, "Okey", "Close"); } if(admin == 0) { ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Administrators", "Server: No Administrators Online", "Okey", "Cancel"); } return true; }
But if an another admin joins ( 2 admins online now ) Then it will show only that admin who joined lately ( Another admin )
Whats the problem ? Im getting no errors