warum das hier es geht viel einfacher
new vID=GetPlayerVehicleID(playerid),
tmp_engine,
tmp_lights,
tmp_alarm,
tmp_doors,
tmp_bonnet,
tmp_boot,
tmp_objective;
GetVehicleParamsEx(vID,tmp_engine, tmp_lights,tmp_alarm,tmp_doors,tmp_bonnet,tmp_boot,tmp_objective);
so hier meine stocks:
stock VehicleEngine(vehicleid, onaus) { new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,onaus,q,w,e,r,t,z); return 1; }
stock VehicleLights(vehicleid, onaus) {new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,eng,onaus,w,e,r,t,z); return 1; }
stock VehicleAlarm(vehicleid, onaus) { new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,eng,q,onaus,e,r,t,z); return 1; }
stock VehicleDoors(vehicleid, onaus) { new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,eng,q,w,onaus,r,t,z); return 1; }
stock VehicleBonnet(vehicleid, onaus) { new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,eng,q,w,e,onaus,t,z); return 1; }
stock VehicleBoot(vehicleid, onaus) { new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,eng,q,w,e,r,onaus,z); return 1; }
stock VehicleObjective(vehicleid, onaus) { new eng,q,w,e,r,t,z; GetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,z); SetVehicleParamsEx(vehicleid,eng,q,w,e,r,t,onaus); return 1; }