06.11.2016, 11:23
Put #pragma tabsize 0 on top of your script to remove the warning.
You should replace the admins with the dialog id that you want.
If you don't want to deal with dialog id's I recommend EasyDialog
You should replace the admins with the dialog id that you want.
If you don't want to deal with dialog id's I recommend EasyDialog
Код:
CMD:admins(playerid,params[]) { new Count, string[128], n[MAX_PLAYER_NAME]; foreach(Player, i) { if(PlayerInfo[i][pAdmin] >=1) { GetPlayerName(i,n,sizeof(n)); format(string, sizeof(string), "%s\n%s", string, n); Count++; } } ShowPlayerDialog(playerid, admins, DIALOG_STYLE_LIST, "Online Admins", string, "Select", "Cancel"); if(Count == 0) { SendClientMessage(playerid, COLOR_GREEN, " Server Level:1337 "); SendClientMessage(playerid, COLOR_GREEN, "____________________________"); } return 1; //THIS SHOULD BE HERE }