Pawno compiling error.(AddStaticVehicle)
#1

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"
Reply
#2

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

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

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).
Reply
#5

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!
Reply
#6

No Problem The Forum is there to help people
Reply
#7

i placed beetwen em but iget an error
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)