PDA

View Full Version : [Help] How do I add sirens in 0.3.7


BornHuman
13/06/2015, 07:14 PM
SA-MP 0.3.7 is released! You can find it on the Download Page (http://www.sa-mp.com/download.php).

SA-MP 0.3.7 Updates
...
- The ability to add sirens for unmarked cop cars.

How do I use this new beautiful feature?

Lajko1
13/06/2015, 07:22 PM
Hey, are you looking for this?
https://wiki.sa-mp.com/wiki/OnVehicleSirenStateChange

hesambia
13/06/2015, 07:23 PM
createvehicle has another parameter at end.
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=0)
EDIT:
Ah, Missed xD
EDIT:
No, He Are Looking For How To Add Siren To Vehicle.

Lajko1
13/06/2015, 07:26 PM
Well than as u said, CreateVehicle function was update
Link to this:
https://wiki.sa-mp.com/wiki/CreateVehicle

BornHuman
13/06/2015, 07:47 PM
D:\SAMP Servers\Vortex Roleplay\script\gamemodes\RP.pwn(2074) : warning 202: number of arguments does not match definition

Code:
Vehicles[i][GameID] = AddStaticVehicleEx(Vehicles[i][CarModel], Vehicles[i][CarPosX], Vehicles[i][CarPosY], Vehicles[i][CarPosZ], Vehicles[i][CarZAngle], Vehicles[i][CarColour1], Vehicles[i][CarColour2], 0, Vehicles[i][AddSiren]);

Yes, I checked. AddStaticVehicleEx still supports addsiren

ArianGubetini
24/03/2016, 03:09 PM
Hello.Im getting the warning 202:number of arguments does not match the definiton.
How should i define the new things for sirens and delay respawn.
Thanks

czerwony03
24/03/2016, 03:19 PM
Have you got proper include version?

ArianGubetini
24/03/2016, 03:27 PM
The problem was at includes.Thanks for helping.
+1 rep:)