[Ajuda] Ajuda com Warning 209
#1

Eu coloquei algumas coisas no OnPlayerPickupPickup e quando compilo da esse warning:
Код:
 (14097) : warning 209: function "Streamer_OnPlayerPickUpPickup" should return a value
e a linha й somente uma chave } que termina o OnPlayerPickupPickup:

Код:
}
Cуdigo inteiro do OnPlayerPickupPickup:
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	for(new i = 0; i <= 300; i ++)
	{
	if(pickupid == PTriadsEnt)
	{
		SetPlayerVirtualWorld(playerid,2);
		SetPlayerInterior(playerid, 5);
		PlayerInfo[playerid][pInt] = 5;
		SetPlayerPos(playerid, 1300.1476,-792.1729,1084.0078);
	    return 1;
	}
	if(pickupid == PTriadsSai)
	{
		SetPlayerVirtualWorld(playerid,0);
		SetPlayerInterior(playerid, 0);
		PlayerInfo[playerid][pInt] = 0;
		SetPlayerPos(playerid,1254.4391,-785.5446,92.0302);
	    return 1;
	}
	if(pickupid == PCorleoneEnt)
	{
		SetPlayerVirtualWorld(playerid,3);
		SetPlayerInterior(playerid, 5);
		PlayerInfo[playerid][pInt] = 5;
		SetPlayerPos(playerid, 1300.1476,-792.1729,1084.0078);
	    return 1;
	}
	if(pickupid == PCorleoneSai)
	{
		SetPlayerVirtualWorld(playerid,0);
		SetPlayerInterior(playerid, 0);
		PlayerInfo[playerid][pInt] = 0;
		SetPlayerPos(playerid, -2722.7732,-314.7871,7.1775);
	    return 1;
	}
	}
} // Linha do Warning
Como faзo para tirar isso?
Reply


Messages In This Thread
Ajuda com Warning 209 - by victor304 - 19.07.2012, 08:50
Re: Ajuda com Warning 209 - by TopFuel - 19.07.2012, 09:02
Re: Ajuda com Warning 209 - by victor304 - 19.07.2012, 09:29

Forum Jump:


Users browsing this thread: 1 Guest(s)