SA-MP Forums Archive
[Help] How can i add a Map Code to my Script - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] How can i add a Map Code to my Script (/showthread.php?tid=166257)



[Help] How can i add a Map Code to my Script - jason121 - 08.08.2010

Ok so Basicly I want to add A map i have found and Like onto Raven's Roleplay,
And i cannot seem to figure out how to.

So if you can Help can you please post a link to a tutorial Or Write a tutorial Up for me

Thank's.
Jason


Re: [Help] How can i add a Map Code to my Script - Ritchie999 - 08.08.2010

Do you mean the "CreateObject" or Converting from MTA to PAWN code?

add the CreateObject to "OnGameModeInit" in your script and then Compile...


Re: [Help] How can i add a Map Code to my Script - jason121 - 08.08.2010

No under the Maps Section i have found a map I want to Add into my Script my Pawn Game mode.

Its Already Converted the one i want


Re: [Help] How can i add a Map Code to my Script - Ritchie999 - 08.08.2010

I don't understand... In the MAP section its "CreateObject"


Re: [Help] How can i add a Map Code to my Script - jason121 - 08.08.2010

https://sampforum.blast.hk/showthread.php?tid=136490

Theres the link To the Map i want to add lets say

How can i do that


Re: [Help] How can i add a Map Code to my Script - jason121 - 08.08.2010

There is no Map Section under my GM Pawno


Re: [Help] How can i add a Map Code to my Script - Ritchie999 - 08.08.2010

Here, this is just an example..

http://pastebin.com/6LDtLSXn


Re: [Help] How can i add a Map Code to my Script - jason121 - 08.08.2010

Ok im under that part of my script should i just paste my code to the top? Of Ongamemodeinit()


Re: [Help] How can i add a Map Code to my Script - r0b - 08.08.2010

You need to do what Ritchie said, copy and paste it there and then replace F_CreateObject with CreateObject everywhere. You can do it in Pawno with STRG + H. Then the search input and the text to replace it. Then press ok, every F_CreateObject is CreateObject now. You need to do this, because you don't got the F_...? Streamer


Re: [Help] How can i add a Map Code to my Script - jason121 - 08.08.2010

May i ask what STRG is is