[Ajuda] Passa para dialog
#1

Alguйm pode me ajuda a passa esse codigo do /admins Para uma dialog List? nгo esta conseguindo, GRATO!

PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
        
SendClientMessage(playeridAZUL_BMO"{FFFFFF}• {00AFCA}Staff's disponнveis:");
        new
            
admladmmdrhlpcrg
        
;
        foreach(
Playeri)
        {
            if(
WE_GetInt(f(i), "AdminL") == 1)
            {
                if(
aInfo[i][Oculto] == false)
                {
                    
adml ++;
                     
format(stringsizeof(string), "~ %s [ID:%d] {1E90FF}Dono"PlayerName(i), i);
                     
SendClientMessage(playerid, -1string);
                }
            }
            if(
aInfo[i][Admin] == && WE_GetInt(f(i), "AdminL") == 0)
            {
                if(
aInfo[i][Oculto] == false)
                {
                    
adm ++;
                     
format(stringsizeof(string), "~ %s [ID:%d] {1E90FF}Administrador"PlayerName(i), i);
                     
SendClientMessage(playerid, -1string);
                }
            }
              if(
aInfo[i][Moderador] == && WE_GetInt(f(i), "AdminL") == 0)
            {
                if(
aInfo[i][Oculto] == false)
                {
                    
mdr ++;
                     
format(stringsizeof(string), "~ %s [ID:%d] {00FF7F}Moderador"PlayerName(i), i);
                     
SendClientMessage(playerid, -1string);
                }
            }
               if(
aInfo[i][Ajudante] == && WE_GetInt(f(i), "AdminL") == 0)
            {
                if(
aInfo[i][Oculto] == false)
                {
                    
hlp ++;
                     
format(stringsizeof(string), "~ %s [ID:%d] {FFA500}Ajudante"PlayerName(i), i);
                     
SendClientMessage(playerid, -1string);
                }
            }
               if(
aInfo[i][Corregedor] == && WE_GetInt(f(i), "AdminL") == 0)
            {
                if(
aInfo[i][Oculto] == false)
                {
                    
crg ++;
                     
format(stringsizeof(string), "~ %s [ID:%d] {00BFFF}Corregedor"PlayerName(i), i);
                     
SendClientMessage(playerid, -1string);
                }
            }
        }
        if(
adm == && mdr == && adml == && hlp == && crg == 0) return SendClientMessage(playeridVERMELHO_BMO"Nenhum Administrador(a) online no Momento !");
        return 
1;
    } 
Reply
#2

use php /php entre [ ]
Reply
#3

Vai no search,o forum ta inundado com essas dъvidas.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)