SA-MP Forums Archive
Applying map to gamemode. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Applying map to gamemode. (/showthread.php?tid=452217)



Applying map to gamemode. - Axey - 20.07.2013

Hello,
So I did start using MTA from a week or so, I do need to know how can I apply my map to the gamemode. Here is what I always do:

1. I finish the map.
2. I save it.
3. I go to my map file.
4. And after I copy it all.
5. I go to http://convertffs.com/
6. I paste what I've copied.
7. I do change Input to:
MTA 1.0 Object change
MTA 1.0 Vehicle change
And, Output to:
MTA 1.0 Object change
MTA 1.0 Vehicle change
Note: I'm using MTA San Andreas 1.3 but I can't see it in the website.
8. I press convert.
9. I copy all.
10. I go and paste it in my gamemode

After all, I go to it's place, nothing there....So, if someone could help me, that would be great :)

Thanks!


Re: Applying map to gamemode. - Jstylezzz - 20.07.2013

Where do you paste it in your mode? I don't know if there is any change between 1.0 and 1.3, but it should work. Also, here at sa-mp forums we encourage the map editor of our community, by JernejL: Click
Works a lot easier with exporting and stuff. Anyway, just tell me where you paste the code in your mode, maybe the problem is there.


Re: Applying map to gamemode. - Axey - 20.07.2013

Hello,
I do post my code into my gamemode
Thanks!


Re: Applying map to gamemode. - Jstylezzz - 20.07.2013

I understand that you post it in your gamemode, but where exactly? You can't just go and place it anywhere and expect it to work. Try pasting the map code into OnGameModeInit, that has to work.


Re: Applying map to gamemode. - Axey - 20.07.2013

So, I just do
OnGameModeInit
Objects or? :P
Thanks for help

//Edit:
So, are you sure from that " Input " And "Output" Things? If not, will you tell me what it should be? Thanks!


Re: Applying map to gamemode. - Jstylezzz - 20.07.2013

yeah, like this
pawn Код:
public OnGameModeInit()
{
//mapping code
}
Don't make a new public OnGameModeInit, but use the existing one.
Hope this helps


Re: Applying map to gamemode. - DJTunes - 20.07.2013

Like he said.
You must paste the code in GameModeInit.