[Ajuda] Alinhar o /Admins
#1

Olб! gostaria de alinhas meu comando /admins,ele estб desalinhado.

Gostaria que ficasse assim:

Adm Cargo Online
exemplo:

PHP код:
Fulano    Moderador(a)      Online
Fulano2   Administrador
(a)  Online 
Grato a quem ajudar.

PHP код:
dcmd_admins(playerid,params[]) {
#pragma unused params
//Alertar admins para quem digitar o comando /admins
if(PlayerInfo[playerid][Level] < 1){
new 
pname[MAX_PLAYER_NAME],SACSB[100];GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(SACSBsizeof(SACSB), "[ADM]: %s[%i] digitou /ADMINS"pnameplayerid);
CallRemoteFunction("MessageToAdmins","is",yellow,SACSB);}
//Estrutura do comando /admins
new Adms[650],ADMsDialog[810],ADMsDialog2[810],Name[MAX_PLAYER_NAME],level,admscount;
for(new 
i,GetMaxPlayers();a;i++)
{
    if(
IsPlayerConnected(i))
    {
        if(
PlayerInfo[i][Level] > 0)
        {
        if(
PlayerInfo[i][Level] == 1)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FFFF00}Ajudante\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
        if(
PlayerInfo[i][Level] == 2)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FF8C00}Moderador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
             if(
PlayerInfo[i][Level] == 3)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FF4500}Sub-Administrador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
      
           if(
PlayerInfo[i][Level] == 4)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{008bce}Administrador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
            if(
PlayerInfo[i][Level] == 5)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{32CD32}Staff\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
                }
            }
            else
            {
             if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                 
//   if(admscount < 15) format(Adms, sizeof(Adms), "{1E90FF}%s[%i] \tNнvel: %i \t{00FF00}Online\n%s",Name,i,level,Adms);
                    
admscount++;
                }
            }
        }
    }
}
if(
admscount 0)
format(ADMsDialogsizeof(ADMsDialog), "%s",Adms);
else
format(ADMsDialog2sizeof(ADMsDialog2), "{FFFFFF}Nгo hб membros da Administraзгo Online no Momento."admscount,Adms);
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"Admins",ADMsDialog,"Fechar","Voltar");
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX,"Admins",ADMsDialog2,"Fechar","Voltar");
return 
1;} 
Reply
#2

Quote:
Originally Posted by CSSDean
Посмотреть сообщение
Olб! gostaria de alinhas meu comando /admins,ele estб desalinhado.

Gostaria que ficasse assim:

Adm Cargo Online
exemplo:

PHP код:
Fulano    Moderador(a)      Online
Fulano2   Administrador
(a)  Online 
Grato a quem ajudar.

PHP код:
dcmd_admins(playerid,params[]) {
#pragma unused params
//Alertar admins para quem digitar o comando /admins
if(PlayerInfo[playerid][Level] < 1){
new 
pname[MAX_PLAYER_NAME],SACSB[100];GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(SACSBsizeof(SACSB), "[ADM]: %s[%i] digitou /ADMINS"pnameplayerid);
CallRemoteFunction("MessageToAdmins","is",yellow,SACSB);}
//Estrutura do comando /admins
new Adms[650],ADMsDialog[810],ADMsDialog2[810],Name[MAX_PLAYER_NAME],level,admscount;
for(new 
i,GetMaxPlayers();a;i++)
{
    if(
IsPlayerConnected(i))
    {
        if(
PlayerInfo[i][Level] > 0)
        {
        if(
PlayerInfo[i][Level] == 1)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FFFF00}Ajudante\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
        if(
PlayerInfo[i][Level] == 2)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FF8C00}Moderador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
             if(
PlayerInfo[i][Level] == 3)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FF4500}Sub-Administrador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
      
           if(
PlayerInfo[i][Level] == 4)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{008bce}Administrador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
            if(
PlayerInfo[i][Level] == 5)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{32CD32}Staff\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
                }
            }
            else
            {
             if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                 
//   if(admscount < 15) format(Adms, sizeof(Adms), "{1E90FF}%s[%i] \tNнvel: %i \t{00FF00}Online\n%s",Name,i,level,Adms);
                    
admscount++;
                }
            }
        }
dcmd_admins(playerid,params[]) {
#pragma unused params
//Alertar admins para quem digitar o comando /admins
if(PlayerInfo[playerid][Level] < 1){
new 
pname[MAX_PLAYER_NAME],SACSB[100];GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(SACSBsizeof(SACSB), "[ADM]: %s[%i] digitou /ADMINS"pnameplayerid);
CallRemoteFunction("MessageToAdmins","is",yellow,SACSB);}
//Estrutura do comando /admins
new Adms[650],ADMsDialog[810],ADMsDialog2[810],Name[MAX_PLAYER_NAME],level,admscount;
for(new 
i,GetMaxPlayers();a;i++)
{
    if(
IsPlayerConnected(i))
    {
        if(
PlayerInfo[i][Level] > 0)
        {
        if(
PlayerInfo[i][Level] == 1)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FFFF00}Ajudante\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
        if(
PlayerInfo[i][Level] == 2)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FF8C00}Moderador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
             if(
PlayerInfo[i][Level] == 3)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{FF4500}Sub-Administrador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
      
           if(
PlayerInfo[i][Level] == 4)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{008bce}Administrador(a)\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
              }
            }
            if(
PlayerInfo[i][Level] == 5)
            {
                if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
GetPlayerName(iNamesizeof(Name));
                    if(
admscount 15format(Admssizeof(Adms), "%s[%i]\t{32CD32}Staff\t{00FF00}Online\n%s",Name,i,Adms);
                    
admscount++;
                }
            }
            else
            {
             if(
AdmHidden[i] == false || PlayerInfo[playerid][Level] > 0)
                {
                    
level PlayerInfo[i][Level];
                    
GetPlayerName(iNamesizeof(Name));
                 
//   if(admscount < 15) format(Adms, sizeof(Adms), "{1E90FF}%s[%i] \tNнvel: %i \t{00FF00}Online\n%s",Name,i,level,Adms);
                    
admscount++;
                }
            }
        }
    }
}
if(
admscount 0)
format(ADMsDialogsizeof(ADMsDialog), "%s",Adms);
else
format(ADMsDialog2sizeof(ADMsDialog2), "{FFFFFF}Nгo hб membros da Administraзгo Online no Momento."admscount,Adms);
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"Admins",ADMsDialog,"Fechar","Voltar");
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX,"Admins",ADMsDialog2,"Fechar","Voltar");
return 
1;}
    }
}
if(
admscount 0)
format(ADMsDialogsizeof(ADMsDialog), "%s",Adms);
else
format(ADMsDialog2sizeof(ADMsDialog2), "{FFFFFF}Nгo hб membros da Administraзгo Online no Momento."admscount,Adms);
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"Admins",ADMsDialog,"Fechar","Voltar");
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX,"Admins",ADMsDialog2,"Fechar","Voltar");
return 
1;} 
PHP код:
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_TABLIST_HEADERS,"Admins",ADMsDialog,"Fechar","Voltar"); 
Reply
#3

Quote:
Originally Posted by zF3lKy3
Посмотреть сообщение
PHP код:
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_TABLIST_HEADERS,"Admins",ADMsDialog,"Fechar","Voltar"); 
PHP код:
C:\Users\P\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(4985) : error 017undefined symbol "DIALOG_STYLE_TABLIST_HEADERS" 
Reply
#4

Quote:
Originally Posted by CSSDean
Посмотреть сообщение
PHP код:
C:\Users\P\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(4985) : error 017undefined symbol "DIALOG_STYLE_TABLIST_HEADERS" 
Atualize sua include a_samp para a mais atualizada.
Reply
#5

Quote:
Originally Posted by zF3lKy3
Посмотреть сообщение
Atualize sua include a_samp para a mais atualizada.
obg!! mais na hora de testar fica assim: https://imgur.com/2fzWaFr
Reply
#6

ja resolvi,vlw men.
Reply
#7

Quote:
Originally Posted by CSSDean
Посмотреть сообщение
ja resolvi,vlw men.
De nada, jб ia te dizer como resolver, rs, me manda o IP do seu servidor vBETA e seu discord.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)