20.07.2012, 00:22
Had this "bug" since always, when using GetVehicleParamsEx all the params are -1 by default.
So if your engine is off, it doesn't say 0 or false, it says -1 which is incorrect.
It is so annoying i can't use it normally, i should be able to do this;
Now, because the value is actually -1 it doesn't say my engine is off, i can't make a proper engine system like this.
Everything should be 0 by default, not -1.
So if your engine is off, it doesn't say 0 or false, it says -1 which is incorrect.
It is so annoying i can't use it normally, i should be able to do this;
Код:
new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); if(!engine) SendClientMessage(playerid, 0x123456FF, "Your engine is off!");
Everything should be 0 by default, not -1.