#1

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 202number of arguments does not match definition 
please help +Rep
Reply
#2

Use AddStaticVehicle by replace CreateVehicle
Reply
#3

you didn't understand i said in new update i want to add siren for car
Reply
#4

"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.
Reply
#5

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
Reply
#6

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 202number 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)
Reply
#7

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
Reply
#8

BUMP!
Reply
#9

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.
Reply
#10

Re-download the 0.3.7 server package and copy all of those files into your server main folder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)