/admins(dialog) HELP!
#3

EDIT: To late... why!

You had one extra bracket above return 1;

Plus, properly indent your code, this looks like horse shit. And use [ pawn] and [ /pawn] tags.

pawn Code:
dcmd_admins(playerid, params[])
{
    #pragma unused params
    new string[2048];
    new sendername[MAX_PLAYER_NAME];
    if(IsPlayerConnected(playerid))
    {
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PInfo[playerid][Level] >= 3)
                {
                    GetPlayerName(i , sendername, sizeof(sendername));
                    format(string, sizeof(string),"The following admin(s) are currently online:\n  %s %s (ID:%d): [Level %i]\n", string,sendername, i,PInfo[playerid][Level]);
                }
            }
        }
        ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Victim Online Admins List...",string,"OK","Cancel");
    }
    else
    {
        ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Victim Online Admins List...","No administrators online","OK","Cancel");
    }
    return 1;
}
Reply


Messages In This Thread
/admins(dialog) HELP! - by .Campionull. - 25.07.2012, 10:22
Re: /admins(dialog) HELP! - by Shockey HD - 25.07.2012, 10:31
Re: /admins(dialog) HELP! - by Kindred - 25.07.2012, 10:31
Re: /admins(dialog) HELP! - by .Campionull. - 25.07.2012, 10:33
Re: /admins(dialog) HELP! - by Kindred - 25.07.2012, 10:36
Re: /admins(dialog) HELP! - by .Campionull. - 25.07.2012, 10:39
Re: /admins(dialog) HELP! - by Kindred - 25.07.2012, 10:41
Re: /admins(dialog) HELP! - by .Campionull. - 25.07.2012, 10:49

Forum Jump:


Users browsing this thread: 1 Guest(s)