[Ajuda] warning 225: unreachable code
#1

Parte do Warning:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
//---------------PORTAO DO CATIVEIRO----------//
{
if ((newkeys==KEY_CTRL_BACK))
{
OnPlayerCommandText(playerid,"/portaocativeiro");
}
return 1;
}
//----------------ENTRAR INTERIOR HQ--------------//
if ((newkeys==KEY_SECONDARY_ATTACK))
{
OnPlayerCommandText(playerid,"/entrarsub");
OnPlayerCommandText(playerid,"/sairsub");

return true;
}

return 1;
}

Como Resolver o problema?
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    //---------------PORTAO DO CATIVEIRO----------//
    if ((newkeys==KEY_CTRL_BACK))
    {
        OnPlayerCommandText(playerid,"/portaocativeiro");
    }
    //----------------ENTRAR INTERIOR HQ--------------//
    if ((newkeys==KEY_SECONDARY_ATTACK))
    {
        OnPlayerCommandText(playerid,"/entrarsub");
        OnPlayerCommandText(playerid,"/sairsub");
        return true;
    }
    return 1;
}
Vocк tinha aberto uma chave errada..
Reply
#3

Muito obrigado amigo, vocк me ajudou muito! Deu certo!
Reputaзao pra voce amigo!
Reply
#4

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    
//---------------PORTAO DO CATIVEIRO----------//
    
if ((newkeys==KEY_CTRL_BACK))
    {
        
OnPlayerCommandText(playerid,"/portaocativeiro");
    }
    
//----------------ENTRAR INTERIOR HQ--------------//
    
if ((newkeys==KEY_SECONDARY_ATTACK))
    {
        
OnPlayerCommandText(playerid,"/entrarsub");
        
OnPlayerCommandText(playerid,"/sairsub");
        return 
1;
    }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)