CreateVehicle and addsiren -
Pauliuza - 01.04.2016
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?
Re: CreateVehicle and addsiren -
N0FeaR - 01.04.2016
Should be like this
https://sampwiki.blast.hk/wiki/CreateVehicle
Код:
CreateVehicle( model, Spawn_x, Spawn_y, Spawn_z, Spawn_a, -1, 1, 60 );
Re: CreateVehicle and addsiren -
Pauliuza - 01.04.2016
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.
Re: CreateVehicle and addsiren -
ScIrUsna - 01.04.2016
CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60, 1 siren on 0 siren off);
Re: CreateVehicle and addsiren -
Pauliuza - 01.04.2016
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.