19.07.2012, 08:50
Eu coloquei algumas coisas no OnPlayerPickupPickup e quando compilo da esse warning:
e a linha й somente uma chave } que termina o OnPlayerPickupPickup:
Cуdigo inteiro do OnPlayerPickupPickup:
Como faзo para tirar isso?
Код:
(14097) : warning 209: function "Streamer_OnPlayerPickUpPickup" should return a value
Код:
}
Код:
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

