Dialog Problem
#5

If I am not mistaken, than Hiddos code would always show "No admins online!" and the online admins if there are some

pawn Code:
dcmd_admins(playerid, unused[]) {
    #pragma unused unused
    new
        i = 0,
        string[400];
    for( ; i != MAX_PLAYERS; ++i) { // foreach ?
        if(0 < Variables[i][Level] < 10) {
            format(string, sizeof string, "%s{FF0000}ADMINISTRATOR: %s ID[%d]{15D4ED}[Level %d]\n", string, RealName[i], i, Variables[i][Level]);
        }
    }
    if(string[0] == EOS) {
        string = "No admins online.";
    }
    ShowPlayerDialog(playerid, 5591, DIALOG_STYLE_MSGBOX, "{1B1BE0}Online Admins:", string, "Done", "");
    return true;
}
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: 4 Guest(s)