04.05.2015, 10:50
(
Последний раз редактировалось DarkLouis; 04.05.2015 в 21:12.
)
How to fix "warning 202: number of arguments does not match definition" on SA:MP 0.3.7
Hi all, this is my first tutorial and I'm sure that this will help you.
After updated our SA:MP server to 0.3.7, he compiled our gamemode.
A lot of people say that pawno say: warning 202: number of arguments does not match definition.
In this tutorial I will help you to find a solution.
First solution
Go to your include's folder.
Open "a_vehicles.inc".
Press "CTRL + F"
Write in the line: "CreateVehicle"
Now check the parameters of "CreateVehicle". If addsiren = 0 it's write, ok.
If addsiren is written, that isn't your solution. Else if isn't written, download SA-MP Server on the SA:MP's site and replace all include with your.
Second solution
Go to your'include's folder.
Check an Vehicle include. Example: I have GetVehicleColor by Ryder.
Open your include.
Check "CreateVehicle" line and check the parameters.
if the siren parameter isn't written, just do it.
Question: How can I write the parameter?
Here's an example that I did. (by GetVehicleColor by Ryder):
If you want full GetVehicleColor include updated: here
Now save it and re-compile your gamemode.
if everything it's ok, good job! Else probably in your include's folder there's an another include that handles the vehicles.
This tutorial is finish, I hope you fix your problem...
Good bye and thank you for the reading.
I'm sorry if there're some grammatical errors but I'm italian.
P.S: If there're errors, please tell me and I'll edit the thread. Thank you.
Hi all, this is my first tutorial and I'm sure that this will help you.
After updated our SA:MP server to 0.3.7, he compiled our gamemode.
A lot of people say that pawno say: warning 202: number of arguments does not match definition.
In this tutorial I will help you to find a solution.
First solution
Go to your include's folder.
Open "a_vehicles.inc".
Press "CTRL + F"
Write in the line: "CreateVehicle"
Now check the parameters of "CreateVehicle". If addsiren = 0 it's write, ok.
If addsiren is written, that isn't your solution. Else if isn't written, download SA-MP Server on the SA:MP's site and replace all include with your.
Second solution
Go to your'include's folder.
Check an Vehicle include. Example: I have GetVehicleColor by Ryder.
Open your include.
Check "CreateVehicle" line and check the parameters.
if the siren parameter isn't written, just do it.
Question: How can I write the parameter?
Here's an example that I did. (by GetVehicleColor by Ryder):
PHP код:
stock n_CreateVehicle(modelID, Float: spawn_X, Float: spawn_Y, Float: spawn_Z, Float: z_Angle, color1, color2, respawn_Delay, yourvariable = 0)
{
if(color1 < 0 || color2 < 0)
{
color1 = random(127);
color2 = random(127);
}
modelID = CreateVehicle(modelID, spawn_X, spawn_Y, spawn_Z, z_Angle, color1, color2, respawn_Delay, yourvariable);
new
colorStr[24]
;
format(colorStr, sizeof(colorStr), "%d-%d", color1, color2);
setproperty(_, "", PROPERTY_OFFSET(modelID), colorStr);
return modelID;
}
Now save it and re-compile your gamemode.
if everything it's ok, good job! Else probably in your include's folder there's an another include that handles the vehicles.
This tutorial is finish, I hope you fix your problem...
Good bye and thank you for the reading.
I'm sorry if there're some grammatical errors but I'm italian.
P.S: If there're errors, please tell me and I'll edit the thread. Thank you.