/admins
#4

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.
Reply


Messages In This Thread
/admins - by Mriss - 15.03.2014, 23:50
Re: /admins - by cessil - 16.03.2014, 00:34
Re: /admins - by ChandraLouis - 16.03.2014, 01:42
Re: /admins - by CuervO - 16.03.2014, 02:36
Re: /admins - by ChandraLouis - 16.03.2014, 02:37
Re: /admins - by CuervO - 16.03.2014, 02:43

Forum Jump:


Users browsing this thread: 2 Guest(s)