Help with IsPlayerNearAnyVehicle (rep+)
#2

pawn Код:
if(GetVehicleModel(i))
        {
            GetVehiclePos(i, x, y, z);
            if(GetPlayerDistanceFromPoint(playerid, x, y, z) <= distance) return 1;
        }
I hope you know that GetVehicleModel() returns the MODEL ID of the vehicle, not the vehicle ID?
Reply


Messages In This Thread
Help with IsPlayerNearAnyVehicle (rep+) - by Join7 - 02.03.2012, 14:32
AW: Help with IsPlayerNearAnyVehicle (rep+) - by Drebin - 02.03.2012, 14:37
Re: Help with IsPlayerNearAnyVehicle (rep+) - by Join7 - 02.03.2012, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)