PDA

View Full Version : Help


Airblog
17/06/2015, 06:18 AM
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:
CreateVehicle(411,1062.6344,-1769.7096,13.0746,269.9955,3,3,60,1);
and gives me this warning!
warning 202: number of arguments does not match definition
please help +Rep

SoFahim
17/06/2015, 06:22 AM
Use AddStaticVehicle by replace CreateVehicle

Airblog
17/06/2015, 08:48 AM
you didn't understand i said in new update i want to add siren for car

mamorunl
17/06/2015, 09:03 AM
"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.

SoFahim
17/06/2015, 09:31 AM
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

Darrenr
17/06/2015, 10:07 AM
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:
CreateVehicle(411,1062.6344,-1769.7096,13.0746,269.9955,3,3,60,0);
and gives me this warning!
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)

Airblog
18/06/2015, 06:21 AM
"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.

Thats why i told you to add static vehicle then use the siren function line to add siren . as like AttachObjectToVehicle

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://wiki.sa-mp.com/wiki/CreateVehicle

Airblog
19/06/2015, 05:36 AM
BUMP!

Sew_Sumi
19/06/2015, 05:46 AM
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.

rappy93
19/06/2015, 12:06 PM
Re-download the 0.3.7 server package and copy all of those files into your server main folder.

Sew_Sumi
19/06/2015, 02:56 PM
Re-download the 0.3.7 server package and copy all of those files into your server main folder.

You don't actually need to have the files in the server folder, just saying...

It's also better to do it the other way... Use the default folder as it is, and add the OTHER includes you use (fixes.inc, ysi.inc and the rest, which ever you use) to that folder.

By attempting to copy over the files in there, you may fail at over-writing and this, could be the outcome.




But really, it's been shown that it's his includes, have a problem as they aren't to 0.3.7 includes, and his code won't add a siren anyway, as it's set to 0.

Airblog
21/06/2015, 04:45 AM
You don't actually need to have the files in the server folder, just saying...

It's also better to do it the other way... Use the default folder as it is, and add the OTHER includes you use (fixes.inc, ysi.inc and the rest, which ever you use) to that folder.

By attempting to copy over the files in there, you may fail at over-writing and this, could be the outcome.




But really, it's been shown that it's his includes, have a problem as they aren't to 0.3.7 includes, and his code won't add a siren anyway, as it's set to 0.

i did it but again warning :(

Airblog
22/06/2015, 08:22 AM
BUMP Two !!!

Sew_Sumi
22/06/2015, 11:57 AM
Are you sure you're running the right pawno.exe, and not some other one, from a link on your desktop?

Airblog
02/07/2015, 09:36 AM
Are you sure you're running the right pawno.exe, and not some other one, from a link on your desktop?

yes i'm sure

Sew_Sumi
02/07/2015, 11:17 AM
Well, it's working on my end... (0.3.7 R1 includes)

Fact is this comes from outdated includes, or corrupted includes.

Even copying and pasting the line of code you gave, still compiles.