[Ajuda] Warning Irritante
#7

Troque por esse:
PHP код:
if( !strcmpcmd"/veiculo"true ))
{
    if( !
IsPlayerInAnyVehicleplayerid ))
    {
        
SendClientMessageplayeridCOLOR_ERRO"[ x ] Vocк nгo estб em um veнculo !" );
        return 
1;
    }
    
ShowPlayerDialog(playeridVEICULO_CMDSDIALOG_STYLE_LIST"» Seu Veiculo","» Trancar\n» Destrancar\n» Farol Ligado\n» Farol Desligado","Selecionar","Cancelar");
    
SendClientMessage(playeridCOLOR_AMARELO"» Mais opзхes estгo sendo feitas.. Aguarde!");
    return 
1;
// Linha do comando
// ----------------------------------------------------------------------------------------------- //
if(dialogid == VEICULO_CMDS)
{
    if(
response)
    {
        if(
listitem == 0)
        {
            new
            
GetPlayerVehicleIDplayerid )
            ;
            new
            
Float:i_xFloat:i_yFloat:i_z
            
;
            
GetPlayerPosplayeridi_xi_yi_z );
            {
                foreach(
Player)
                {
                    if( 
!= playerid )
                    {
                        
SetVehicleParamsForPlayervi0);
                    }
                }
                
SendClientMessage(playeridCOLOR_AMARELO,"| INFO | Veнculo trancado!");
                return 
1;
            }
        }
        if(
listitem == 1)
        {
            foreach(
Player)
            {
                
SetVehicleParamsForPlayerplayeridi0);
            }
            
SendClientMessageplayeridCOLOR_AMARELO"| INFO | Veнculo destrancado!" );
            
//PlayerPlaySound( playerid, 1056, i_x, i_y, i_z );
            
return 1;
        } 
// Trancar veiculo ou destrancar .
        
if(listitem == 2// aqui a linha do warning .
        
{
            new 
motlualarporcappormaob;
            new 
carroa GetPlayerVehicleIDplayerid );
            if( 
carroa != INVALID_VEHICLE_ID )
            {
                
GetVehicleParamsExcarroamotlualarporcappormaob );
                
SetVehicleParamsExcarroamotVEHICLE_PARAMS_ONalarporcappormaob );
                
SendClientMessageplayeridCOLOR_SISTEMA"| INFO | Farol Ligado com sucesso!" );
                
//return 1;
            
}
        }
        if(
listitem == 3)
        {
            new 
motlualarporcappormaob;
            new 
carroa GetPlayerVehicleIDplayerid );
            if( 
carroa != INVALID_VEHICLE_ID )
            {
                
GetVehicleParamsExcarroamotlualarporcappormaob );
                
SetVehicleParamsExcarroamotVEHICLE_PARAMS_OFFalarporcappormaob );
                
SendClientMessageplayeridCOLOR_SISTEMA"| INFO | Farol desligado com sucesso!" );
                return 
1;
            }
        }
    }

@Edit
Quote:
Originally Posted by Whoo
Посмотреть сообщение
FallweN o erro vai persistir repare que o if(listitem == 2) esta fora do response
Vdd vlw por avisar, atualizado.
Reply


Messages In This Thread
Warning Irritante - by GuiKommander - 20.01.2017, 20:15
Re: Warning Irritante - by IlanZ - 20.01.2017, 20:18
Re: Warning Irritante - by RazorGuigo - 20.01.2017, 20:20
Re: Warning Irritante - by Cheleber_Pausini - 20.01.2017, 20:22
Re: Warning Irritante - by GuiKommander - 20.01.2017, 20:23
Re: Warning Irritante - by RazorGuigo - 20.01.2017, 20:25
Re: Warning Irritante - by FallweN - 20.01.2017, 20:26
Re: Warning Irritante - by Whoo - 20.01.2017, 20:27
Re: Warning Irritante - by GuiKommander - 20.01.2017, 20:34
Re: Warning Irritante - by Andersonsouza - 21.01.2017, 02:59

Forum Jump:


Users browsing this thread: 4 Guest(s)