26.06.2013, 08:51
Hello guys, I've a warning with my pickup code, if you could help me to fix it it'll be awsome
Here's the warning.
And here's the code;
And another question is, if I use a /TPHERE command, it teleports just the player without the vehicle, how could I possibly fix it and make him teleport WITH the vehicle?
Thanks ahead
Here's the warning.
pawn Код:
C:\Users\user\Desktop\Hazard Gaming\HZG V1.0\gamemodes\Hazard.pwn(685) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
{
if(pickupid == LSPD)
SetPlayerPos(playerid, -1402.2529,-134.3108,14.1484);
SendClientMessage(playerid, COLOR_BLUE, "You've chosen to become an officer, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
return 1;
}
{ // <------- Line 685 (The warning is here.)
if(pickupid == FBI)
SetPlayerPos(playerid, 1786.4082,-1298.6226,120.2656);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You've chosen to become an agent, proceed to the next checkpoint to continue, unless you'll prefer to use /home.");
return 1;
}
}
Thanks ahead