SA-MP Forums Archive
Pawno compiling error.(AddStaticVehicle) - 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: Pawno compiling error.(AddStaticVehicle) (/showthread.php?tid=82527)



Pawno compiling error.(AddStaticVehicle) - oliverrud - 18.06.2009

I get a error when i try to compile this:

AddStaticVehicle(420,1803.8997,-1920.9816,13.1724,90.6932,6,1);

My error is this: error 021: symbol already defined: "AddStaticVehicle"


Re: Pawno compiling error.(AddStaticVehicle) - Weirdosport - 18.06.2009

You can't add that to a script on it's own. You need #include <a_samp> and OnGameModeInit at least...


Re: Pawno compiling error.(AddStaticVehicle) - oliverrud - 18.06.2009

I got that. I placed the addstaticvehicle at line 17808 or something.


Re: Pawno compiling error.(AddStaticVehicle) - mirkoiz - 18.06.2009

Quote:
Originally Posted by oliverrud
I placed the addstaticvehicle at line 17808 or something.
We dont need the Lines just put your Addstaticvehicle Something at OnGamemodeInit (b.t.w
pawn Код:
CreateVehicle(ID, X, Y, Z, COL1, COL2, RESPAWNTIME);
is the better way).


Re: Pawno compiling error.(AddStaticVehicle) - oliverrud - 18.06.2009

lol thanks for the help guys you helped me the right way. Reason were: I placed the AddStaticVehicle codes at the end of the script. But i didn't know that it had to be in somewhere at: Ingamemodeinit start and ingamemodeinit exit. So i did place it there after found out and it work'd! Thanks!


Re: Pawno compiling error.(AddStaticVehicle) - mirkoiz - 18.06.2009

No Problem The Forum is there to help people


Re: Pawno compiling error.(AddStaticVehicle) - basse - 31.08.2011

i placed beetwen em but iget an error