[Ajuda] 26 erros
#1

como tirar esses 26 erros ta nesse sistema aqui
PHP код:
if(dialogid == DIALOG_HIERARQUIA)
    if(
response)
    {
        new 
gStr[128], info[2048];
        if(
listitem == 0)// Administrador
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pAdmin] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogStr);
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Administradores da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 1)// Lider
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pLider] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Lider da Facзгo"info,"Ok","");
            return 
1;
        }
        if(
listitem == 2)// Donos do morro
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pDM] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Dono da Comunidade"info"Ok","");
            return 
1;
        }
        if(
listitem == 3)// Frentes
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pFrente] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Frente da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 4)// Gerentes
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pGerente] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Gerente da Comunidade",info,"Ok","");
            return 
1;
        }
        if(
listitem == 5)// Vaporzгo
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pVapor] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Vapor da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 6)// Fogueteiros
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pFogueteiro] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Fogueteiro da Comunidade"info,"Ok","");
            return 
1;
        }
    }
    return 
1;

Reply
#2

Poste quais erros estб aparecendo.
Reply
#3

http://imgur.com/a/mnAXJ
Reply
#4

Tenta ai:
pawn Код:
if(dialogid == DIALOG_HIERARQUIA)
if(response)
{

    new gStr[128], info[2048];
    if(listitem == 0)// Administrador
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pAdmin] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, gStr);
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Administradores da Comunidade", info,"Ok","");
        return 1;
    }
    if(listitem == 1)// Lider
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pLider] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, getPName(playerid));
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Lider da Facзгo", info,"Ok","");
        return 1;
    }
    if(listitem == 2)// Donos do morro
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pDM] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, getPName(playerid));
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Dono da Comunidade", info, "Ok","");
        return 1;
    }
    if(listitem == 3)// Frentes
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pFrente] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, getPName(playerid));
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Frente da Comunidade", info,"Ok","");
        return 1;
    }
    if(listitem == 4)// Gerentes
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pGerente] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, getPName(playerid));
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Gerente da Comunidade",info,"Ok","");
        return 1;
    }
    if(listitem == 5)// Vaporzгo
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pVapor] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, getPName(playerid));
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Vapor da Comunidade", info,"Ok","");
        return 1;
    }
    if(listitem == 6)// Fogueteiros
    {
       

        for(new i; i < MAX_PLAYERS; i++)
        {
           

            if(Player[i][pFogueteiro] > 0 && Player[i][pFaccao] ==  Player[playerid][pFaccao])
            {
               

                format(gStr, sizeof(gStr), "{ff0000}» {ffffff}%s\n", getPName(playerid));
                strcat(info, getPName(playerid));
            }
        }
        strcat(info, " ");
        ShowPlayerDialog(playerid, D_NULL, DIALOG_STYLE_LIST,"{ff0000}» {ffffff}Fogueteiro da Comunidade", info,"Ok","");
        return 1;
    }
    return 1;
}
Reply
#5

msm coisa 26 erros vc usou alguma include
Reply
#6

PHP код:
if(dialogid == DIALOG_HIERARQUIA)
{
    if(
response)
    {
        new 
gStr[128], info[2048];
        if(
listitem == 0)// Administrador
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pAdmin] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogStr);
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Administradores da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 1)// Lider
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pLider] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
            
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Lider da Facзгo"info,"Ok","");
            return 
1;
        }
        if(
listitem == 2)// Donos do morro
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pDM] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Dono da Comunidade"info"Ok","");
            return 
1;
        }
        if(
listitem == 3)// Frentes
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pFrente] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Frente da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 4)// Gerentes
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pGerente] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Gerente da Comunidade",info,"Ok","");
            return 
1;
        }
        if(
listitem == 5)// Vaporzгo
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pVapor] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Vapor da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 6)// Fogueteiros
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pFogueteiro] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Fogueteiro da Comunidade"info,"Ok","");
            return 
1;
        }
    }

Reply
#7

eu so tenho a dialog precisa fazer o comando ?
Reply
#8

PHP код:
if(dialogid == DIALOG_HIERARQUIA)
{
//faltou abrir essa chave 
    
if(response)
    {
        new 
gStr[128], info[2048];
        if(
listitem == 0)// Administrador
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pAdmin] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogStr);
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Administradores da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 1)// Lider
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pLider] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Lider da Facзгo"info,"Ok","");
            return 
1;
        }
        if(
listitem == 2)// Donos do morro
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pDM] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Dono da Comunidade"info"Ok","");
            return 
1;
        }
        if(
listitem == 3)// Frentes
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pFrente] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Frente da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 4)// Gerentes
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pGerente] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Gerente da Comunidade",info,"Ok","");
            return 
1;
        }
        if(
listitem == 5)// Vaporzгo
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pVapor] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Vapor da Comunidade"info,"Ok","");
            return 
1;
        }
        if(
listitem == 6)// Fogueteiros
        
{
            for(new 
iMAX_PLAYERSi++)
              {
                  if(
Player[i][pFogueteiro] > && Player[i][pFaccao] ==  Player[playerid][pFaccao])
                  {
                      
format(gStrsizeof(gStr), "{ff0000}» {ffffff}%s\n"getPName(playerid));
                      
strcat(infogetPName(playerid));
                  }
              }
              
strcat(info" ");
            
ShowPlayerDialog(playeridD_NULLDIALOG_STYLE_LIST,"{ff0000}» {ffffff}Fogueteiro da Comunidade"info,"Ok","");
            return 
1;
        }
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)