GetVehicleParamsEx = -1
#4

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
Under OnGameModeInit:

pawn Код:
ManualVehicleEngineAndLights();
Yes i use that function.

Quote:
Originally Posted by NetKiel
Посмотреть сообщение
It's -1 because it's unset.
That's why the defines are like this.

pawn Код:
#define VEHICLE_PARAMS_UNSET    -1
#define VEHICLE_PARAMS_OFF      0
#define VEHICLE_PARAMS_ON       1
I know, but doesn't it seems unlogical? i mean if the engine is off, it's off, not unset.
I think everything should be 0 from default, not -1.

Anyways, i've edited https://sampwiki.blast.hk/wiki/GetVehicleParamsEx (added the NOTE) so people know that in the future.
Reply


Messages In This Thread
GetVehicleParamsEx = -1 - by WackoX - 20.07.2012, 00:22
Re: GetVehicleParamsEx = -1 - by SuperViper - 20.07.2012, 00:26
AW: GetVehicleParamsEx = -1 - by NetKiel - 20.07.2012, 00:31
Re: AW: GetVehicleParamsEx = -1 - by WackoX - 20.07.2012, 00:34
Re: GetVehicleParamsEx = -1 - by SuperViper - 20.07.2012, 03:00
Re: GetVehicleParamsEx = -1 - by Kar - 20.07.2012, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)