Quote:
Originally Posted by DaRk_RaiN
pawn Код:
CMD:admins(playerid,params[]) { new Count = 0; new string[100], n[MAX_PLAYER_NAME]; for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][Level] > 0) { GetPlayerName(i,n,sizeof(n)); format(string,sizeof(string),"Level %d: %s (ID: %d) - %s", PlayerInfo[i][Level], n, i, GetRankFromLevel(i)); ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Online Admins...", string, "ok", ""); Count++; } } if(Count == 0) { ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX,"Online Admins...", "There Are No Administrators Online.", "ok", ""); } return 1; }
|
Why are you changing the code, if that guy want to use foreach(y_iterate) let him use it..