Please help

Started by SA:MP, May 05, 2023, 08:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SA:MP

Please help


pawn Code:

dcmd_admins(playerid,params[])
{
    #pragma unused params
    new string[256], result[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(Variables[i][Level] >0 && Variables[i][Level] < 10)
        {
            format(string, sizeof(string), "{FF0000}ADMINISTRATOR: %s ID[%d]{15D4ED}[Level %d]\n", RealName[i],playerid, Variables[i][Level]);
            strcat(result, string, sizeof(result));      
        }
    }
    ShowPlayerDialog(playerid, 5591, 0, "{1B1BE0}Online Admins:", result, "Done", "");
    return 1;
}

Can anyone help me to make 2 admin lines,cuz when here are 2+ admins in admin list is only 1 admin

Help me please

Source: Please help