[Ajuda] Comando /admins
#1

Estou tendo um problema com o comando /admins, simplesmente mostra 1 administrador, nгo aparece os demais !


PHP Code:
CMD:admins(playeridparams[])
{
    new 
count 0;
    { 
        if(
jInfo[playerid][Logado] == true)
        {
            
            for (new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
jInfo[i][Cargo] > 0)
                    {
                        new 
StrAdmins[1000];
                        new 
Str1[128];
                        
format(Strsizeof(Str), "{FFFFFF}Administrador Online no Momento !\n");
                        
format(Str1sizeof(Str1), "{FFFFFF}[ %s {FFFFFF}] {FF8000}%s (%d) {FFFFFF}estб {00FF00}Online\n"LevelAdmin[jInfo[i][Cargo]], jNome(i), i); 
                        
strcat(StrAdminsStr1000);
                        
strcat(StrAdminsStr11000);
                        
ShowPlayerDialog(playeridDAdminsOnlineDIALOG_STYLE_MSGBOX"{FFA500}Administradores"StrAdmins"Fechar""");
                        
count++;
                    }
                }
            }
        }
        if(
count == 0)
        {
            
format(Strsizeof(Str), "{FF0000}Nenhum administrador Online no momento !");
            
ShowPlayerDialog(playeridDAdminsOnlineDIALOG_STYLE_MSGBOX"{FFA500}Administradores"Str"Fechar""");
        }
    }
    return 
1;

Screenshoot

https://prnt.sc/jdtaac
Reply


Messages In This Thread
Comando /admins - by zNaKa - 04.05.2018, 19:27
Re: Comando /admins - by humildadeforever - 04.05.2018, 19:55
Re: Comando /admins - by zNaKa - 04.05.2018, 20:37

Forum Jump:


Users browsing this thread: 1 Guest(s)