SA-MP Forums Archive
How to add scripts as includes? - 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 add scripts as includes? (/showthread.php?tid=528404)



How to add scripts as includes? - Jigsaw123 - 27.07.2014

Hello guys!

You know them servers like west coast roleplay..
in their pawno folder they got another folder saying
'wcrp' or something, then inside that, .pwn files. and in the script they just put in
#include wcrp/business
Can i do that aswell? with this biz system:
http://pastebin.com/MZEz8FCB

Thank you..

p.S: if this isn't possible with this code ^, please tell me how to do it so i can make a folder in pawno and use #include to load scripts.. thanks.


Re: How to add scripts as includes? - Cannary2048 - 27.07.2014

Save it as .inc on "Directory/Pawno/WCRP/Business.inc"
then add #include <WCRP/business> in your gamemode