SA-MP Forums Archive
warning help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning help (/showthread.php?tid=541535)



warning help - Airblog - 12.10.2014

Код:
warning 202: number of arguments does not match definition
line is just:
}
.
Код:
warning 202: number of arguments does not match definition
line:
sp1 = AddStaticVehicleEx(462,1637.1680,-2262.1943,13.0686,358.9492,1,1);
.
Код:
warning 202: number of arguments does not match definition
line:
CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],60000);
.
Код:
warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
line is nothing
PLZ Help


Re: warning help - ZaBraNjeNi - 12.10.2014

Can you show one part of this? No just one line.


Re: warning help - Airblog - 12.10.2014

how can i put one part?O_o
they are in different parts


Re: warning help - AdHaM612 - 12.10.2014

This is the correct usage of AddStaticVehicleEx
pawn Код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
"respawn_delay" , which means the delay until the car is respawned in seconds.
So you can just add a respawn delay with seconds, or make it AddStaticVehicle if you don't want it to respawn.

CreateVehicle:
pawn Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
You forgot to add color1 and color2.

And about the other warnings, you should show some lines before them so we can see what's the problem.


Re: warning help - Airblog - 12.10.2014

again warning !