[Ajuda] Warning 225: unreachable code
#2

Remove esse 'return 1;' de dentro das condicionais.

A funзгo da callback em si, jб se retorna para true, entгo nгo existe a necessidade de retornar novamente para true.

Tome isso como base.
PHP Code:
new pickup;
public 
OnGameModeInit()
{
    
pickup CreatePickup(000000);
    return 
true;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == pickup)
    {
        
ShowPlayerDialog(playerid10151015DIALOG_STYLE_MSGBOX"Mensagem""Vocк chegou atй a pickup""Sim""Nгo");
    }
    return 
true;

Reply


Messages In This Thread
Warning 225: unreachable code - by MituhBR - 19.12.2017, 22:59
Re: Warning 225: unreachable code - by Pool - 19.12.2017, 23:07
Re: Warning 225: unreachable code - by DylanSprite - 19.12.2017, 23:12
Re: Warning 225: unreachable code - by MituhBR - 19.12.2017, 23:13
Re: Warning 225: unreachable code - by Pool - 19.12.2017, 23:24
Re: Warning 225: unreachable code - by MituhBR - 20.12.2017, 10:59

Forum Jump:


Users browsing this thread: 2 Guest(s)