dialog - help-me!?
#1

Hello, I am unable to do this dialogue, someone help me?

PHP код:
    if (strcmp(cmd"/lideres"true) == 0)
    {
            if (
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playeridCOLOR_GRAD1"ERRO: Vocк nгo tem nнvel administrativo suficiente.");
            if (
PlayerInfo[playerid][pAdmDuty] != && PlayerInfo[playerid][pAdmin] <= 5) return SendClientMessage(playeridCOLOR_GRAD1"ERRO: Vocк nгo estб no modo admin! (/trabalhar)");
            for (new 
0MAX_PLAYERSi++)
            {
                if (
IsPlayerConnected(i))
                {
                    new 
ttext[20];
                    if (
PlayerInfo[i][pLider] == 1)
                    {
                        
ttext "Polнcia Militar 1";
                    }
                     else if (
PlayerInfo[i][pLider] == 1)
                    {
                        
ttext "Polнcia Militar 2";
                    }
                    else if (
PlayerInfo[i][pLider] == 2)
                    {
                        
ttext "Polнcia Civil";
                    }
                    else if (
PlayerInfo[i][pLider] == 3)
                    {
                        
ttext "Exйrcito";
                    }
                    else if (
PlayerInfo[i][pLider] == 4)
                    {
                        
ttext "Departamento Mйdico";
                    }
                    else if (
PlayerInfo[i][pLider] == 5)
                    {
                        
ttext "Varrios Los Aztecas";
                    }
                    else if (
PlayerInfo[i][pLider] == 6)
                    {
                        
ttext "GRI";
                    }
                    else if (
PlayerInfo[i][pLider] == 7)
                    {
                        
ttext "Governo";
                    }
                    else if (
PlayerInfo[i][pLider] == 8)
                    {
                        
ttext "Assassinos";
                    }
                    else if (
PlayerInfo[i][pLider] == 9)
                    {
                        
ttext "San News Repуrter";
                    }
                    else if (
PlayerInfo[i][pLider] == 10)
                    {
                        
ttext "Poder Judiciбrio";
                    }
                    else if (
PlayerInfo[i][pLider] == 12)
                    {
                        
ttext "Los Santos Vagos";
                    }
                    else if (
PlayerInfo[i][pLider] == 13)
                    {
                        
ttext "SEMNOME2";
                    }
                    else if (
PlayerInfo[i][pLider] == 14)
                    {
                        
ttext "Asphalt King";
                    }
                    else if (
PlayerInfo[i][pLider] == 15)
                    {
                        
ttext "Grove Street";
                    }
                    else if (
PlayerInfo[i][pLider] == 16)
                    {
                        
ttext "Front Yard Ballas";
                    }
                    else if (
PlayerInfo[i][pLider] == 17)
                    {
                        
ttext "Street King";
                    }
                    if (
PlayerInfo[i][pLider] >= 1)
                    {
                         new 
lideres[90000000], dialog1[32500000000];
                         
format(lideressizeof dialog1"Lider [%s]: %s"GetPlayerNameRP(playerid), ttext);
                        
strcat(dialog1lideressizeof dialog1);
                    }
                     
ShowPlayerDialog(playerid120DIALOG_STYLE_LIST"Lнderes online"dialog1"Fechar""");
                }
        }
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)