SA-MP Forums Archive
How to put the mappings to the main GM - 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)
+--- Thread: How to put the mappings to the main GM (/showthread.php?tid=513574)



How to put the mappings to the main GM - Yander - 17.05.2014

Hello guys, is it possible for me to move all my mappings to the main Game Mode? As my host don't load the filterscripts I have. Please help me.

Just reply what things you need.


Re: How to put the mappings to the main GM - SAMProductions - 17.05.2014

Yes, you can.

Just paste all the Mappings Codes into your OnGameModeInit() Callback

EDIT :-
pawn Код:
public OnGameModeInit()
{
    /* Your Mappings Code Here */
    return 1;
}



Re: How to put the mappings to the main GM - saikumar - 17.05.2014

pawn Код:
public OnGameModeInit()
{
//////paste your mapping codes here///
return 1;
}



Re: How to put the mappings to the main GM - Yander - 17.05.2014

I got this error
Код:
C:\Users\JohnMark\Desktop\IGRP Script\gamemodes\IGRP.pwn(4000) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\JohnMark\Desktop\IGRP Script\gamemodes\IGRP.pwn(73935) : warning 217: loose indentation
C:\Users\JohnMark\Desktop\IGRP Script\gamemodes\IGRP.pwn(93397) : error 021: symbol already defined: "Audio_OnGameModeInit"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: How to put the mappings to the main GM - SAMProductions - 17.05.2014

Problem #1:
"(4000) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")"
Update your Include: [Plugin] Audio Plugin
or
just make a Forward Function for that Public Function,
Код:
forward Audio_OnSetPack(audiopack[])
Problem #2:
"(73935) : warning 217: loose indentation"
Loose Indentation = Press TAB.

Problem #3:
"(93397) : error 021: symbol already defined: "Audio_OnGameModeInit""
Symbol is already defined delete one Audio_OnGameModeInit.


Re: How to put the mappings to the main GM - Yander - 17.05.2014

Resolved!