Dialog Problem
#10

Untested:

pawn Code:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    new string[MAX_PLAYER_NAME+8*15], stringb[MAX_PLAYER_NAME+8], amt;
   
    if(IsPlayerAdmin(playerid) || Variables[playerid][Level] > 12)
    {
        foreach(Player, i)
        {
            if(Variables[i][Level] < 12 && Variables[i][Level] > 0)
            {
                format(stringb, sizeof stringb,"%s(%d)", RealName[i], Variables[i][Level] );
                strcat(string, stringb, sizeof string);
                amt++;
            }
        }
    }
    else
    {
        foreach(Player,i)
        {
            if(Variables[i][Level] < 12 && Variables[i][Level] > 0)
            {
                format(stringb,sizeof stringb,"%s", RealName[i] );
                strcat(string, stringb, sizeof string);
                amt++;
            }
        }
    }
    if(amt == 0) return SendClientMessage( playerid, MAIN_COLOR_2, "No admins are online.");
    else return ShowPlayerDialog(playerid, 4557, DIALOG_STYLE_LIST, "Current Online Admins:", string, "OK", "Close");
}
Reply


Messages In This Thread
Please help - by Hoss - 23.08.2011, 16:57
Re: Dialog Problem - by Jeffry - 23.08.2011, 17:08
Re: Dialog Problem - by Hiddos - 23.08.2011, 18:06
Re: Dialog Problem - by Jeffry - 23.08.2011, 18:12
AW: Dialog Problem - by Nero_3D - 23.08.2011, 19:35
Re: Dialog Problem - by PrawkC - 23.08.2011, 19:57
Re: Dialog Problem - by Hoss - 24.08.2011, 09:15
AW: Re: Dialog Problem - by Nero_3D - 24.08.2011, 10:34
Re: Dialog Problem - by Intoxicated - 24.08.2011, 10:39
Re: Dialog Problem - by iPLEOMAX - 24.08.2011, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)