16.01.2013, 22:29
Howdy ya'll, I think you all know me already since I posted many threads in need of help, so heres another problem I have! 
Whenever the pawn program scans for any errors, it says that line 10800 (Marked in red below) has a warnin'. Anyone have an idea why it says that?
Warning Line: if(IsPlayerInRangeOfPoint(playerid, 5, -1581.7371,-1609.9010,36.5233)) // Toll Barrier
Warning Error: C:\Users\Krakuski!\Desktop\Angel Pine Roleplay\gamemodes\BETA_TEST_SERVER.pwn(10800) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.

Whenever the pawn program scans for any errors, it says that line 10800 (Marked in red below) has a warnin'. Anyone have an idea why it says that?
Warning Line: if(IsPlayerInRangeOfPoint(playerid, 5, -1581.7371,-1609.9010,36.5233)) // Toll Barrier
Warning Error: C:\Users\Krakuski!\Desktop\Angel Pine Roleplay\gamemodes\BETA_TEST_SERVER.pwn(10800) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Code:
CMD:paytoll(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You are not driving a vehicle.");
if(PlayerInfo[playerid][pMoney] < 1400) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to pay the toll ($1400)!");
{
SendClientMessage(playerid, COLOR_GREY, "You are not near a toll booth!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5, -1581.7371,-1609.9010,36.5233)) // Toll Barrier
{
if(!TollGateStatus)
{
TollGateStatus = 1;
MoveDynamicObject(TollGate, -1577.1992188,-1606.6992188,36.7999992,0.0000000,270.0000000,97.9979248, 2);
}
else
{
TollGateStatus = 0;
MoveDynamicObject(TollGate, -1577.1999512,-1606.6999512,36.7999992,0.0000000,336.7500000,98.0000000, 2);
}
return 1;
}
GiveZaiatMoney(playerid, -1400);
if(Fuel[GetPlayerVehicleID(playerid)] <= 25) return SendClientMessage(playerid, COLOR_GREY, "Your vehicle's fuel tank is too low to pay the toll!");
format(string, sizeof(string), "* %s takes out $1400 from their wallet and hands it to the toll booth manager", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}

