SA-MP Forums Archive
[BUG]Horn stays on when turning alarm off - 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: [BUG]Horn stays on when turning alarm off (/showthread.php?tid=194512)



[BUG]Horn stays on when turning alarm off - Geso - 29.11.2010

When I turn my alarm off while in car, the horn keeps on going. It stops when I step out of the car.


Re: [BUG]Horn stays on when turning alarm off - BloodyEric - 29.11.2010

Can't confirm this. Could you post the code you use to turn the alarm on/off ?


Re: [BUG]Horn stays on when turning alarm off - DVDK - 29.11.2010

I've tested a lot with the alarm function, have found another kind of bug but never noticed this one.


Re: [BUG]Horn stays on when turning alarm off - Geso - 30.11.2010

alright the code to turn it on and off:

Код:
AlarmOn(vehicleid)
{
        new engine,lights,alarm,doors,bonnet,boot,objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,engine,lights,1,doors,bonnet,boot,objective);
}

AlarmOff(vehicleid)
{
        new engine,lights,alarm,doors,bonnet,boot,objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,engine,lights,0,doors,bonnet,boot,objective);
}



Re: [BUG]Horn stays on when turning alarm off - DVDK - 30.11.2010

Quote:
Originally Posted by Geso
Посмотреть сообщение
alright the code to turn it on and off:

Код:
AlarmOn(vehicleid)
{
        new engine,lights,alarm,doors,bonnet,boot,objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,engine,lights,1,doors,bonnet,boot,objective);
}

AlarmOff(vehicleid)
{
        new engine,lights,alarm,doors,bonnet,boot,objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,engine,lights,0,doors,bonnet,boot,objective);
}
I tested this code, didn't find any problems at all.
Which vehicle did you use?


Re: [BUG]Horn stays on when turning alarm off - Geso - 30.11.2010

Quote:
Originally Posted by DVDK
Посмотреть сообщение
I tested this code, didn't find any problems at all.
Which vehicle did you use?
Elegant, I'll try another one to make sure


Re: [BUG]Horn stays on when turning alarm off - Geso - 30.11.2010

Dangit, now my SA won't start, guess it's RC2

UPDATE:

Confirming this is not a problem at an Infernus i.e., so far I've only seen it when using an Elegant.


Re: [BUG]Horn stays on when turning alarm off - DVDK - 30.11.2010

Quote:
Originally Posted by Geso
Посмотреть сообщение
Dangit, now my SA won't start, guess it's RC2

UPDATE:

Confirming this is not a problem at an Infernus i.e., so far I've only seen it when using an Elegant.
I've tested it, also here didn't found any problems.


Re: [BUG]Horn stays on when turning alarm off - Geso - 30.11.2010

Ill try again and make a vid


Re: [BUG]Horn stays on when turning alarm off - Geso - 30.11.2010

Hmm, problem didn't show up this time :/, anyways, if I ever see something similar again, I'll let you know...