SA-MP Forums Archive
[Map] How do I implement a map? - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Maps (https://sampforum.blast.hk/forumdisplay.php?fid=64)
+---- Thread: [Map] How do I implement a map? (/showthread.php?tid=195410)



How do I implement a map? - 06leachr - 02.12.2010

I've tried copying and pasting the pawno code provided, but I get this when compiling:
Код:
C:\Path\pawno\M-RP\gamemodes\mrp.pwn(44518) : error 021: symbol already defined: "CreateObject"
C:\Path\pawno\M-RP\gamemodes\mrp.pwn(44589) : error 021: symbol already defined: "AddStaticVehicle"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Some help?


Re: How do I implement a map? - Biesmen - 02.12.2010

Do you have 'new CreateObject and AddStaticVehicle'? If yes, remove it.


Re: How do I implement a map? - Mihai_Marius - 02.12.2010

use
pawn Код:
#define <a_samp>



Re: How do I implement a map? - 06leachr - 02.12.2010

I've added #define <a_samp>
which has created more errors:

XXX\pawno\M-RP\gamemodes\mrp.pwn(44518) : error 074: #define pattern must start with an alphabetic character
XXX\pawno\M-RP\gamemodes\mrp.pwn(44519) : error 021: symbol already defined: "CreateObject"
XXX\pawno\M-RP\gamemodes\mrp.pwn(44590) : error 021: symbol already defined: "AddStaticVehicle"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Then on each line, it starts:
CreateObject(then continues with the co-ordinates and object id's, ect)

and

AddStaticVehicle(car id and co-ordinates).

Help?
Thanks,
Robert


Re: How do I implement a map? - Jochemd - 02.12.2010

Would be nice if you show us your includes, stocks, defines and OnGameModeInit.


Re: How do I implement a map? - Wolbol - 02.12.2010

Did you add it under the callback OnGameModeInit?

And show the script please.


Re: How do I implement a map? - Noss* - 02.12.2010

Quote:
Originally Posted by Clan303
Посмотреть сообщение
Eh..I can't really code or shit..but i think you've added it two times..
Well don't go around post counting.Your post doesn't make sense anyway.


Re: How do I implement a map? - Biesmen - 02.12.2010

Quote:
Originally Posted by Noss*
Посмотреть сообщение
Well don't go around post counting.Your post doesn't make sense anyway.
You're following his steps. You are also posting that, which raises your post count while it's off topic.

on topic:
06leachr, please post your OnGameModeInit content so we can take a look at it.


Re: How do I implement a map? - ColdXX - 02.12.2010

Quote:
Originally Posted by Mihai_Marius
Посмотреть сообщение
use
pawn Код:
#define <a_samp>
Its
Код:
#include <a_samp>
not define...
Also Put CreateObject and CreateVehicle under
pawn Код:
OnGameModeInIt
U can use CTRL+F to find it faster!


Re: How do I implement a map? - ColdXX - 02.12.2010

Quote:
Originally Posted by Mihai_Marius
Посмотреть сообщение
use
pawn Код:
#define <a_samp>
Its
Код:
#include <a_samp>
not define...
Also Put CreateObject and AddStaticVehicle under
pawn Код:
OnGameModeInIt
U can use CTRL+F to find it faster!