18.01.2011, 14:36
Hi all,
Its been a while, 2 years or something.
So u can figure i am making mistakes with new things...
This code is failing:
I dont have any errors while compiling :/
Its been a while, 2 years or something.
So u can figure i am making mistakes with new things...
This code is failing:
Код:
stock VehicleCheckStatus(playerid)
{
new vehicle = GetPlayerVehicleID(playerid);
new VehicleModel = GetVehicleModel(GetPlayerVehicleID(playerid));
if( VehicleModel == 509 || VehicleModel == 481 || VehicleModel == 510 )// Bikes
{
TogglePlayerControllable(playerid, true);
Vehicle[vehicle][Engine] = 1;
}
if(Vehicle[vehicle][Engine] == 0)
{
new engine, lights, alarm, doors, bonnet, boot, objective);
GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, Vehicle[vehicleid][IsLocked], bonnet, boot, objective);
} else {
new engine, lights, alarm, doors, bonnet, boot, objective);
GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, alarm, Vehicle[vehicleid][IsLocked], bonnet, boot, objective);
}
}

