[BUGS] SetVehicleParamsEx is all -1
#1

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

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

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.
Reply
#4

No, this actually makes sense.

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

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!
Reply
#6

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

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?
Reply
#8

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.
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)