Warning ? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning ? (
/showthread.php?tid=142335)
Warning ? -
johnnyc - 18.04.2010
when i was compiling my GM it was always good and no errors or warnings, but now when i added train "AddStatickVehicle" it gives me 1 warning :
Код:
/(5564) : warning 202: number of arguments does not match definition
Line 5564:
Код:
AddStaticVehicle(538,1722.8712,-1953.7305,14.8756,89.8164, -1, -1, never); // Train
and the train works perefctly and nothing wrong but i dont need this warning please help.
Re: Warning ? -
cessil - 18.04.2010
the "never" has to be a number
Re: Warning ? -
johnnyc - 18.04.2010
what "never" mean ?
Re: Warning ? -
dice7 - 18.04.2010
AddStaticVehicle has 7 arguments, so
pawn Код:
AddStaticVehicle(538, 1722.8712, -1953.7305, 14.8756, 89.8164, -1, -1);
Re: Warning ? -
johnnyc - 18.04.2010
Quote:
Originally Posted by dice7
AddStaticVehicle has 7 arguments, so
pawn Код:
AddStaticVehicle(538, 1722.8712, -1953.7305, 14.8756, 89.8164, -1, -1);
|
Thanks this worked and now i got no warning but umm what the "NEVER" means ? and now after i remove the never is something wrong gonna happend ?
Re: Warning ? -
dice7 - 18.04.2010
The 'never' probably standed for the respawn parameter which the functions CreateVehicle() and AddStaticVehicleEx() have.
Just check the wiki
https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
https://sampwiki.blast.hk/wiki/CreateVehicle