[Ajuda] Problema, dlgs
#1

Entгo pessoal, o pwn estб parando de funcionar , no caso desta dialog aqui

PHP код:
    if(dialogid == DialogInv)
    {
                if(!
response) return 1;
                if(
response)
                {
                        switch(
listitem)
                        {
                                case 
0ItemOpcoes(playerid0);
                                case 
1ItemOpcoes(playerid1);
                                case 
2ItemOpcoes(playerid2);
                                case 
3ItemOpcoes(playerid3);
                                case 
4ItemOpcoes(playerid4);
                                case 
5ItemOpcoes(playerid5);
                                case 
6ItemOpcoes(playerid6);
                                case 
7ItemOpcoes(playerid7);
                                case 
8GuardarItem(playerid);
                        }
                        return 
1;
                }
    }
    if(
dialogid == DialogOpc)
    {
                if(!
response) return 1;
                if(
response)
                {
                        switch(
listitem)
                        {
                                case 
0:
                                {
                                        
GivePlayerWeapon(playeridInventarioArma[ItemOpcao[playerid]][playerid], InventarioAmmo[ItemOpcao[playerid]][playerid]);
                                        
InventarioArma[ItemOpcao[playerid]][playerid]=0;
                                        
InventarioAmmo[ItemOpcao[playerid]][playerid]=0;
                                }
                                case 
1:
                                {
                                        
InventarioArma[ItemOpcao[playerid]][playerid]=0;
                                        
InventarioAmmo[ItemOpcao[playerid]][playerid]=0;
                                        
SendClientMessage(playerid, -1"Item destruнdo!");
                                }
                        }
                        return 
1;
                }
    }
    return 
0;

O que pode estб de errado? '-'
Reply
#2

Retire o:
Код:
    return 0; 
}
Codнgo:
PHP код:
if(dialogid == DialogInv)  
{
      
    if(!
response) return 1;  
    if(
response)  
    {
          
        switch(
listitem)  
        {
              
            case 
0ItemOpcoes(playerid0);  
            case 
1ItemOpcoes(playerid1);  
            case 
2ItemOpcoes(playerid2);  
            case 
3ItemOpcoes(playerid3);  
            case 
4ItemOpcoes(playerid4);  
            case 
5ItemOpcoes(playerid5);  
            case 
6ItemOpcoes(playerid6);  
            case 
7ItemOpcoes(playerid7);  
            case 
8GuardarItem(playerid);  
        }  
        return 
1;  
    }  
}  
if(
dialogid == DialogOpc)  
{
      
    if(!
response) return 1;  
    if(
response)  
    {
          
        switch(
listitem)  
        {
              
            case 
0:  
            {
                  
                
GivePlayerWeapon(playeridInventarioArma[ItemOpcao[playerid]][playerid], InventarioAmmo[ItemOpcao[playerid]][playerid]);  
                
InventarioArma[ItemOpcao[playerid]][playerid]=0;  
                
InventarioAmmo[ItemOpcao[playerid]][playerid]=0;  
            }  
            case 
1:  
            {
                  
                
InventarioArma[ItemOpcao[playerid]][playerid]=0;  
                
InventarioAmmo[ItemOpcao[playerid]][playerid]=0;  
                
SendClientMessage(playerid, -1"Item destruнdo!");  
            }  
        }  
        return 
1;  
    }  

Reply
#3

Tira o }
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)