[Ajuda] Warning 225: unreachable code
#4

Pera aн sou meio lento pra entender
Esqueci de uma coisa
O cуdigo inteiro й assim

Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == pickupammu) {MostrarListaCompras(playerid);return 1;}

	if(pickupid == PickGeral || pickupid == PickGeral2 || pickupid == PickGeral3)
	{

		GivePlayerWeapon(playerid, 22, 300);
		GivePlayerWeapon(playerid, 28, 300);
		GivePlayerWeapon(playerid, 31, 300);
		GivePlayerWeapon(playerid, 16, 10);
		GivePlayerWeapon(playerid, 34, 100);
		GivePlayerWeapon(playerid, 4, 2);
		GivePlayerWeapon(playerid, 42, 100);
		GivePlayerWeapon(playerid, 26, 300);
		SetPlayerArmour(playerid,100.0);
		SendClientMessage(playerid,COLOUR_INFORMACAO,"[INFO]: Parabйns, vocк conseguiu um Kit de Guerra da [=B13=]");
		SendClientMessage(playerid,COLOUR_INFORMACAO,"[INFO]: O que inclui: Colete, Faca, Granadas, M4, Sniper, Extintor e Kit Run");
		return 1;
	}

	if(pickupid == coletecond) // o id desse pickup vai ser igual a variбvel colete
	{

		SetPlayerArmour(playerid, 100); //quando o player entrar no pickup. o colete dele irб ficar 100%
		return 1;
	}

	if(pickupid == vidacond) // o id desse pickup vai ser igual a variбvel colete
	{

		SetPlayerHealth(playerid, 100); //quando o player entrar no pickup. o colete dele irб ficar 100%
		return true;
	}

	return 1;
}
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: 1 Guest(s)