Quote:
Originally Posted by ChandraLouis
pawn Код:
CMD:admins(playerid,params[]) { new str[256],Name[MAX_PLAYER_NAME]; foreach(new i:Player) { if(IsPlayerAdmin(i)||PlayerInfo[i][pAdmin]>0) { GetPlayerName(i,Name,sizeof(Name)); format(str,sizeof(str),"Name : %s | Level : %i",Name, pInfo[playerid][pAdmin]); ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "{FF0000}Evolution Administrators", str, "OK", "Close") } } return 1; }
|
I can't seem to figure whether you posted that as a reference or you just failed at copy pasting. Either ways the script will fail because there's no new line in the dialogs, so it will only display the last admin because the ShowPlayerDialog is inside of the loop.