Vehicle not locking properly
#1

Hello,

pawn Code:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(VehicleInfo[vehicleid][Locked] == 0) SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
    else SetVehicleParamsForPlayer(vehicleid,forplayerid,0,0);
    return 1;
}
This does not lock the vehicle, even if VehicleInfo[vehicleid][Locked] is 1. Why??

Regards, Jochem
Reply
#2

Put test marks such as print, only then ask.
Reply
#3

SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
1 = Locks the vehicle.

If your locked- variable is set to 0, it will lock the vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)