SA-MP Forums Archive
[BUGS] SetVehicleParamsEx is all -1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [BUGS] SetVehicleParamsEx is all -1 (/showthread.php?tid=194854)



[BUGS] SetVehicleParamsEx is all -1 - DVDK - 30.11.2010

When using ManualVehicleEngineAndLights and SetVehicleParamsEx together, all vehicles engine alarm lights etc. are -1 instead of 0.


Re: [BUGS] SetVehicleParamsEx is all -1 - veyron - 30.11.2010

Код:
#define VEHICLE_PARAMS_UNSET	-1
#define VEHICLE_PARAMS_OFF	0
#define VEHICLE_PARAMS_ON	1



Re: [BUGS] SetVehicleParamsEx is all -1 - DVDK - 30.11.2010

Quote:
Originally Posted by veyron
Посмотреть сообщение
Код:
#define VEHICLE_PARAMS_UNSET	-1
#define VEHICLE_PARAMS_OFF	0
#define VEHICLE_PARAMS_ON	1
But that's stupid, if the engine is off it's off, not unset.


Re: [BUGS] SetVehicleParamsEx is all -1 - Memoryz - 30.11.2010

No, this actually makes sense.

Unset, you have not changed the defaults, you haven't set anything so therefore its unset.


Re: [BUGS] SetVehicleParamsEx is all -1 - DVDK - 30.11.2010

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
No, this actually makes sense.

Unset, you have not changed the defaults, you haven't set anything so therefore its unset.
So then the money also have to be -1? and the gravity -1 and health -1.
If i get a value i want to know if the engine is on or off, not if it's unset!


Re: [BUGS] SetVehicleParamsEx is all -1 - Memoryz - 30.11.2010

No, the money & gravity has nothing to do with Vehicle Params now does it?


Re: [BUGS] SetVehicleParamsEx is all -1 - DVDK - 30.11.2010

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
No, the money & gravity has nothing to do with Vehicle Params now does it?
No, but you say it makes sence because it's not set,
then why doesn't it makes sence to set money health gravity to -1?


Re: [BUGS] SetVehicleParamsEx is all -1 - Memoryz - 30.11.2010

Because Money is client-sided, all that data is stored on the GTA:SA of the client.

The vehicles component states are now serversided.

God, im reading everything your making a thread about and your just posting about complete garbage that does not make sense.


Re: [BUGS] SetVehicleParamsEx is all -1 - DVDK - 30.11.2010

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
Because Money is client-sided, all that data is stored on the GTA:SA of the client.

The vehicles component states are now serversided.

God, im reading everything your making a thread about and your just posting about complete garbage that does not make sense.
Your argument is invalid.
Money is just as server/client-sided as vehicle components.


Re: [BUGS] SetVehicleParamsEx is all -1 - Grim_ - 30.11.2010

His argument is valid. And does it matter what it is returning? You could just edit your script to check for -1 and/or the 0 value.

This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds.