include - 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: include (
/showthread.php?tid=262554)
include -
mariomako - 18.06.2011
Script used: Infinity freeroll
A detailed description of the problem: I have too many objects in GM (why the stunt server), so we want them off somehow to include jel I've seen on a GM, but does not include ordinary, but that include going under ongamemodeinit. How is it possible to achieve?
Part of the script: /
Pictures: /
Re: include -
Wesley221 - 18.06.2011
Just make an new file in your pawno includes, add the objects in it, and then do this:
pawn Код:
public OnGameModeInit()
{
#include <location of the objects you pasted in something.inc>
// other things in ongamemodeinit
return 1;
}
Re: include -
mariomako - 18.06.2011
Quote:
Originally Posted by Wesley221
Just make an new file in your pawno includes, add the objects in it, and then do this:
pawn Код:
public OnGameModeInit() { #include <location of the objects you pasted in something.inc> // other things in ongamemodeinit return 1; }
|
should look like mine. Inc. file? and whether you should put in pavno inkludes or skriptfajles?
Re: include -
Wesley221 - 18.06.2011
Put it with your other includes that are in your pawno.
Also, the name doesnt care