SA-MP Forums Archive
million code break apart in Include.inc? - 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: million code break apart in Include.inc? (/showthread.php?tid=146227)



million code break apart in Include.inc? - oicq747285250 - 06.05.2010

I have an idea....
Can i use CallLocalFunction to call function and break apart the crazy pwn codes into inc?
new.inc
forward.inc
vehs.inc
buildings.inc
missions.inc
otherfunctions.inc
family.inc



Re: million code break apart in Include.inc? - Jay_ - 06.05.2010

You don't need to use CallLocalFunction.
Just #include <filename.pwn>


Re: million code break apart in Include.inc? - oicq747285250 - 06.05.2010

I tried
but error...


Re: million code break apart in Include.inc? - Jay_ - 06.05.2010

You have to make sure you include your file at the correct place. It has to be above your function calls, but after your defines.

For example:

Код:
#include <a_samp>

#define BLA 

#include somethingThatUsesBLA.pwn

FunctionWhichisinSomethingThatUsesBla()
{

}