/admins dialog help
#6

Like I said, you need to use strcat and yet people are posting codes with only format *sigh*
pawn Код:
dcmd_admins(playerid,params[])
{
    new count=0,string[128],rank[128], first, string2[40];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && GetInfo(i,"AdminLevel")>= 1)
        {
            if(first)
                format(string, sizeof(string), "{FF02A7}%s (Lvl. %d)", AdminName(i),GetInfo(i,"AdminLevel"));
            else
            {
                format(string2, sizeof(string2), "\n{FF02A7}%s (Lvl. %d)", AdminName(i),GetInfo(i,"AdminLevel"));
                strcat(string, string2, sizeof(string));
            }
            count++;
        }
    }
    if(count) ShowPlayerDialog(playerid, 5559, DIALOG_STYLE_MSGBOX, "Online administrator", string, "Close", "");
    if (count == 0) SendClientMessage(playerid,LIGHTBLUE,"{FF02A7}[Admin]:{ffffff}There Are no Admins Online");
    return 1;
}
Try that code, it's not tested.
Reply


Messages In This Thread
/admins dialog help - by JawsPlus - 08.11.2014, 09:30
Re: /admins dialog help - by dominik523 - 08.11.2014, 09:59
Re: /admins dialog help - by JawsPlus - 08.11.2014, 11:48
Re: /admins dialog help - by Diverse - 08.11.2014, 11:54
Re: /admins dialog help - by biker122 - 08.11.2014, 11:57
Re: /admins dialog help - by dominik523 - 08.11.2014, 12:04
Re: /admins dialog help - by biker122 - 08.11.2014, 12:33
Re: /admins dialog help - by JawsPlus - 08.11.2014, 12:35

Forum Jump:


Users browsing this thread: 2 Guest(s)