CreateVehicle and addsiren
#1

Hey,

I've a problem with CreateVehicle function.

I want to add new SAMP 0.3.7 feature (police sound siren) and I can't. I've spent like 5~ hours trying to include some includes, none helped.

Everything is working fine with this code:
Код:
CreateVehicle( model, Spawn_x, Spawn_y, Spawn_z, Spawn_a, color1, color2, -1 );
And if I add one more value at the end of the function, compiler shows me a warning.

Line:
Код:
CreateVehicle( model, Spawn_x, Spawn_y, Spawn_z, Spawn_a, color1, color2, -1, 1 );
Warning:
Код:
warning 202: number of arguments does not match definition
I've checked an a_vehicles.inc, everything is up to date.

I don't really understand how is that even possible, maybe someone has some ideas?
Reply
#2

Should be like this

https://sampwiki.blast.hk/wiki/CreateVehicle

Код:
CreateVehicle( model, Spawn_x, Spawn_y, Spawn_z, Spawn_a, -1, 1, 60 );
Reply
#3

Nothing. By the way, this way I can't set any secondary color. But as I said before, this isnt working, the siren isnt added.
Reply
#4

CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60, 1 siren on 0 siren off);
Reply
#5

Quote:
Originally Posted by ScIrUsna
Посмотреть сообщение
CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60, 1 siren on 0 siren off);
You didn't even read the post.

I'm getting a warning that I mentioned in the post if I do this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)