04.06.2013, 08:35
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 :
-- this line
Updating :
warning 226: a variable is assigned to itself (symbol "checkdist") --
warning 213: tag mismatch --
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
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]
Updating :
warning 226: a variable is assigned to itself (symbol "checkdist") --
pawn Код:
checkdist = checkdist;
pawn Код:
return clostestvid;
Since tonight I'm on it.. Will keep trying