GetPlayerNearestVehicle - While you in vehicle. prob.
#7

Ah much nicer. I will give it a try. Little question though :

How I gonna check the distance its obvious checkdist but i mean in the CMD, see below :

pawn Код:
COMMAND:loadcrates(playerid, params[])
{
    new hCar = GetPlayerVehicleID(playerid);
    if(!comps[hCar][wguns]) return SendClientError(playerid, "You don't have any crates on your forklift.");
    new Pcar = GetPlayerNearestVehicle(playerid);
    [B]if(GetDistanceFromPlayerToVehicle(playerid, Pcar) > 8.0)[/B]
-- this line



Updating :

warning 226: a variable is assigned to itself (symbol "checkdist") --
pawn Код:
checkdist = checkdist;
warning 213: tag mismatch --
pawn Код:
return clostestvid;
Tested in game. Not working too. It might be something else. The "wguns" needs to go to the ClosestVehicle.
Since tonight I'm on it.. Will keep trying
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)