How to add Mapping? -
Jigsaw123 - 08.06.2014
Can someone please teach me on TeamViewer how to add mapping? Thanks..
Re: How to add Mapping? -
iFiras - 08.06.2014
You mean how to add maps?
Use a map editor like
JernejL's Map Editor. After mapping, export the codes and put them in your gamemode/filterscript.
That's how you add maps.
Re: How to add Mapping? -
Stinged - 08.06.2014
Add the 'CreateObject' under OnGameModeInit or OnFilterScriptInit (if it was a filterscript)
And add the 'RemovePlayerBuilding' under OnPlayerConnect.
Re: How to add Mapping? -
Jigsaw123 - 08.06.2014
I did, and my pawno crashes after i added. I tried CreateObject and CreateDynamicObject
Re: How to add Mapping? -
iFiras - 08.06.2014
Crashes? Pawno often crashes for having too many errors (Above 26 errors I guess).
It's probably a missing bracket.
Use
Missing bracket finder to help you to find your missing brackets.
Re: How to add Mapping? -
davve95 - 08.06.2014
Are you using JerneL's map editor?.
Press on the insert button and enter a object id.
You can see controls when you start up the program.
Edit: I was a bit late.
Re: How to add Mapping? -
icra - 08.06.2014
Maps must be load when gamemode starts, there's the right callback named:
OnGameModeInit()
Here's an example:
Код:
public OnGameModeInit() {
CreateObject(4395, ... , ... , ... , ... );
}
CreateObject is a default SA-MP function (you can found it in #a_samp.inc since all SA-MP versions)
You can use many SA-MP Editors to automatically generate them, or you can do the manual and slow job looking for Object ID and replacing coordinates with /save command results.
I sugged you using SA-MP Map Editor, you can find it on this forum.
Else, there's MTA which gives you .map files. You can convert them on the web, for this i suggest you convertffs.com