14.08.2009, 13:25
Hi, i get unreachable code when compiling my script
(6540) : warning 225: unreachable code
line 6540,
if (pickupid == Back)
and also heres where it is.
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Home)
{
SetPlayerPos(playerid,1298.3142,-797.9921,84.1406);
}
return 1;
if (pickupid == Back)
{
SetPlayerPos(playerid,1384.9432,-2487.6943,16.9050);
}
return 1;
}
(6540) : warning 225: unreachable code
line 6540,
if (pickupid == Back)
and also heres where it is.
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Home)
{
SetPlayerPos(playerid,1298.3142,-797.9921,84.1406);
}
return 1;
if (pickupid == Back)
{
SetPlayerPos(playerid,1384.9432,-2487.6943,16.9050);
}
return 1;
}