Help -
Airblog - 17.06.2015
Hello
i put all includes of 0.3.7 in includes file but so many functions doesn't work like CreateVehicle that i want to add siren
exp:
PHP код:
CreateVehicle(411,1062.6344,-1769.7096,13.0746,269.9955,3,3,60,1);
and gives me this warning!
PHP код:
warning 202: number of arguments does not match definition
please help +Rep
Re: Help -
SoFahim - 17.06.2015
Use AddStaticVehicle by replace CreateVehicle
Re: Help -
Airblog - 17.06.2015
you didn't understand i said in new update i want to add siren for car
Re: Help -
mamorunl - 17.06.2015
"number of arguments does not match definition": The number of arguments passed through in your method call does not comply with the amount of parameters required for the function. This means that you probably passed along too many arguments to the function.
To check the arguments for the function, find the function on the SA:MP wiki and you can see the parameters required.
Re: Help -
SoFahim - 17.06.2015
Quote:
Originally Posted by Airblog
you didn't understand i said in new update i want to add siren for car
|
Thats why i told you to add static vehicle then use the siren function line to add siren . as like AttachObjectToVehicle
Re: Help -
Darrenr - 17.06.2015
Quote:
Originally Posted by Airblog
Hello
i put all includes of 0.3.7 in includes file but so many functions doesn't work like CreateVehicle that i want to add siren
exp:
PHP код:
CreateVehicle(411,1062.6344,-1769.7096,13.0746,269.9955,3,3,60,0);
and gives me this warning!
PHP код:
warning 202: number of arguments does not match definition
please help +Rep
|
Show us what is before CreateVehicle and After (So, copy the 10 lines of code above and below createVehicle)
And also, show us what the error says in full detail (copy and past the entire error that shows in the compiler)
Re: Help -
Airblog - 18.06.2015
Quote:
Originally Posted by mamorunl
"number of arguments does not match definition": The number of arguments passed through in your method call does not comply with the amount of parameters required for the function. This means that you probably passed along too many arguments to the function.
To check the arguments for the function, find the function on the SA:MP wiki and you can see the parameters required.
|
Quote:
Originally Posted by SoFahim
Thats why i told you to add static vehicle then use the siren function line to add siren . as like AttachObjectToVehicle
|
Quote:
Originally Posted by Darrenr
Show us what is before CreateVehicle and After (So, copy the 10 lines of code above and below createVehicle)
And also, show us what the error says in full detail (copy and past the entire error that shows in the compiler)
|
take a look at this link for add siren:
https://sampwiki.blast.hk/wiki/CreateVehicle
Re: Help -
Airblog - 19.06.2015
BUMP!
Re: Help -
Sew_Sumi - 19.06.2015
You need to check you are using the right pawncc, as I'll bet you're still running it on the older 0.3z compiler.
Another one is that code, won't add a siren because it's set to 0.
The code should work, but it's obviously an include issue by the looks of it.
-Edit- And if you have copied them over, make sure you are using the right folder in the pawno options.
Even further is to use the complete 0.3.7 compiler/includes, and add your other needed includes.
Re: Help -
rappy93 - 19.06.2015
Re-download the 0.3.7 server package and copy all of those files into your server main folder.