Fishing works on fishing spot but not on reefer boat
#3

Quote:
Originally Posted by ryansheilds
Посмотреть сообщение
Change the or ("||") to and ("&&"):
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2103.9148, -103.5168, 2.2754) && !IsPlayerInVehicle(playerid, 451))
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "Error{FFFFFF}: You are not at a fishing spot.");
        return 1;
    }
That would basically be saying "if you're not at the fishing spot AND the boat both at once, the command will display the error."
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)