[Ajuda] /admins
#1

PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
        new
            
admladmmdrhlpcrg,ContarAdmins,dialogst,Str[120];
        foreach(
Playeri)
        {
            if(
aInfo[i][Admin] == || aInfo[i][Moderador] == || aInfo[i][Ajudante] == 1)
            {
                if(
aInfo[i][Oculto] == false)
                {
                    
adml ++;
                     
formatstringsizeof( string ), "Admin\tCargo\tStatus\n{1E90FF}%s \t%s \tOnline\n",PlayerName),Cargo), );
                     
strcat(Strstring);
                     
ShowPlayerDialog(playerid,657,DIALOG_STYLE_TABLIST_HEADERS"{FFFFFF}Admins Online:"Str"Okay""");
                }
            }
        }
        if(
adm == && mdr == && adml == && hlp == && crg == 0) return ShowPlayerDialog(playerid5000DIALOG_STYLE_MSGBOX"{FFFFFF}Admins Online [ {FF0000}0{FFFFFF} ]""{FF0000}Nбo hб administrador ( ADM ) online no momento!'""Fechar"""); 
ta esse:


queria que ficasse assim:


alguem ajuda?
Reply
#2

PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
        new 
admladmmdrhlp,
            
crgContarAdminsdialogstStr[120], Teste[30];
        foreach(
Playeri)
        {
            if(
aInfo[i][Admin] == || aInfo[i][Moderador] == || aInfo[i][Ajudante] == 1)
            {
                if(
aInfo[i][Oculto] == false)
                {
                     
adml++;
                     
formatstringsizeof( string ), "Admin\tCargo\tStatus\n{1E90FF}%s \t%s \tOnline\n",PlayerName),Cargo), );
                     
strcat(Strstring);
                     
format(Testesizeof(Teste), "{FFFFFF}Admins Online [%d]"adml);
                     
ShowPlayerDialog(playerid,657,DIALOG_STYLE_TABLIST_HEADERSTesteStr"Okay""");
                }
            }
        }
        if(
adm == && mdr == && adml == && hlp == && crg == 0) return ShowPlayerDialog(playerid5000DIALOG_STYLE_MSGBOX"{FFFFFF}Admins Online [ {FF0000}0{FFFFFF} ]""{FF0000}Nбo hб administrador ( ADM ) online no momento!'""Fechar"""); 
Reply
#3

Quote:
Originally Posted by InsaneBR
Посмотреть сообщение
PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
        new 
admladmmdrhlp,
            
crgContarAdminsdialogstStr[120], Teste[30];
        foreach(
Playeri)
        {
            if(
aInfo[i][Admin] == || aInfo[i][Moderador] == || aInfo[i][Ajudante] == 1)
            {
                if(
aInfo[i][Oculto] == false)
                {
                     
adml++;
                     
formatstringsizeof( string ), "Admin\tCargo\tStatus\n{1E90FF}%s \t%s \tOnline\n",PlayerName),Cargo), );
                     
strcat(Strstring);
                     
format(Testesizeof(Teste), "{FFFFFF}Admins Online [%d]"adml);
                     
ShowPlayerDialog(playerid,657,DIALOG_STYLE_TABLIST_HEADERSTesteStr"Okay""");
                }
            }
        }
        if(
adm == && mdr == && adml == && hlp == && crg == 0) return ShowPlayerDialog(playerid5000DIALOG_STYLE_MSGBOX"{FFFFFF}Admins Online [ {FF0000}0{FFFFFF} ]""{FF0000}Nбo hб administrador ( ADM ) online no momento!'""Fechar"""); 
Muito obrigado amigo.
Reply
#4

Quote:
Originally Posted by InsaneBR
Посмотреть сообщение
PHP код:
if(!strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
    {
        new 
admladmmdrhlp,
            
crgContarAdminsdialogstStr[120], Teste[30];
        foreach(
Playeri)
        {
            if(
aInfo[i][Admin] == || aInfo[i][Moderador] == || aInfo[i][Ajudante] == 1)
            {
                if(
aInfo[i][Oculto] == false)
                {
                     
adml++;
                     
formatstringsizeof( string ), "Admin\tCargo\tStatus\n{1E90FF}%s \t%s \tOnline\n",PlayerName),Cargo), );
                     
strcat(Strstring);
                     
format(Testesizeof(Teste), "{FFFFFF}Admins Online [%d]"adml);
                     
ShowPlayerDialog(playerid,657,DIALOG_STYLE_TABLIST_HEADERSTesteStr"Okay""");
                }
            }
        }
        if(
adm == && mdr == && adml == && hlp == && crg == 0) return ShowPlayerDialog(playerid5000DIALOG_STYLE_MSGBOX"{FFFFFF}Admins Online [ {FF0000}0{FFFFFF} ]""{FF0000}Nбo hб administrador ( ADM ) online no momento!'""Fechar"""); 
mano fico bom mais deu uns bug no dialog:
Reply
#5

Porque й que estб a mostrar o dialog a cada iteraзгo do loop?
Reply
#6

Quote:
Originally Posted by bruxo00
Посмотреть сообщение
Porque й que estб a mostrar o dialog a cada iteraзгo do loop?
Nгo entendi mano.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)