GetVehicleParamsSirenState(vehicleid) : 2 possible bugs
#6

Quote:
Originally Posted by zeax
Посмотреть сообщение
What about the second report, why do I have to enable the sirens for the second time for it to detect as the vehicle sirens on?
Because of this bug: https://sampforum.blast.hk/showthread.php?tid=571331

So you can wait for the next server update or do something like this:
pawn Код:
stock ToggleELSPanelItem(vehicleid, itemid, togglestate)
...
if(togglestate == VEHICLE_PARAMS_ON) TextDrawSetString(vELSTD[vehicleid][4], "~y~ON");
else TextDrawSetString(vELSTD[vehicleid][4], "OFF");
...
ToggleELSPanelItem(vehicleid, ELS_PANEL_SIREN, newstate);
Reply


Messages In This Thread
GetVehicleParamsSirenState(vehicleid) : 2 possible bugs - by zeax - 18.04.2015, 16:27
Re: GetVehicleParamsSirenState(vehicleid) : 2 possible bugs - by Kalcor - 18.04.2015, 16:51
Re: GetVehicleParamsSirenState(vehicleid) : 2 possible bugs - by Chilli9434 - 18.04.2015, 16:55
Re: GetVehicleParamsSirenState(vehicleid) : 2 possible bugs - by zeax - 18.04.2015, 16:58
Re: GetVehicleParamsSirenState(vehicleid) : 2 possible bugs - by MP2 - 18.04.2015, 17:03
Re: GetVehicleParamsSirenState(vehicleid) : 2 possible bugs - by Kalcor - 18.04.2015, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)