PDA

View Full Version : Pawno compiling error.(AddStaticVehicle)


oliverrud
18/06/2009, 08:00 PM
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"

Weirdosport
18/06/2009, 08:01 PM
You can't add that to a script on it's own. You need #include <a_samp> and OnGameModeInit at least...

oliverrud
18/06/2009, 08:06 PM
I got that. I placed the addstaticvehicle at line 17808 or something.

mirkoiz
18/06/2009, 08:50 PM
I placed the addstaticvehicle at line 17808 or something.


We dont need the Lines :D just put your Addstaticvehicle Something at OnGamemodeInit (b.t.w CreateVehicle(ID, X, Y, Z, COL1, COL2, RESPAWNTIME); is the better way).

oliverrud
18/06/2009, 08:56 PM
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!

mirkoiz
18/06/2009, 09:03 PM
No Problem ;) The Forum is there to help people :D

basse
31/08/2011, 09:00 PM
i placed beetwen em but iget an error :(