12.01.2016, 18:51
Hello, unfortunately i have implemented a mysql vehicle system to my gamemode,
But i forgot that the vehicle siren state is unset.
so, i have 3 vehicle types.
#define VEHICLE_TYPE_GLOBAL (0)
#define VEHICLE_TYPE_LEO (1)
#define VEHICLE_TYPE_ARMY (2)
I have already configured leo, and army.
However the vehicle type global should not have sirens, just the normal horn.
I've tried the following code however this is not working, so i was hoping someone could be of help.
But i forgot that the vehicle siren state is unset.
so, i have 3 vehicle types.
#define VEHICLE_TYPE_GLOBAL (0)
#define VEHICLE_TYPE_LEO (1)
#define VEHICLE_TYPE_ARMY (2)
I have already configured leo, and army.
However the vehicle type global should not have sirens, just the normal horn.
I've tried the following code however this is not working, so i was hoping someone could be of help.
Код:
if(gTeam[playerid] == TEAM_CIVIL && ServerVehicle[vehicleid][Type] == VEHICLE_TYPE_GLOBAL) { new siren = GetVehicleParamsSirenState(vehicleid); if(siren == 1) { siren == 0; } return 1; }