How would you make a 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)
+--- Thread: How would you make a include? (
/showthread.php?tid=417660)
How would you make a include? -
iHaze. - 22.02.2013
Hey, I'm sorry if that's the wrong section, But i wanted to know how to make a include file and make it working, I've created one as anti money cheat, But it won't work In-game, I tried compiling the include with the script(#include <the include name>), But still the same problem, Nothing happens.
Re: How would you make a include? -
RajatPawar - 22.02.2013
pawn Код:
#if defined _myincludefilename_included
#endinput
#endif
#define _myincludefilename_included
This should be at the VERY TOP!
Re: How would you make a include? -
iHaze. - 22.02.2013
I know, But the function isn't affecting the server or even working :/
Re: How would you make a include? -
MP2 - 22.02.2013
What is actually inside the .inc (or .pwn or .txt, actually you can include ANY file type) file?
Re: How would you make a include? -
CreativityLacker - 22.02.2013
Whatever there is, this is how I started my include -
Open PAWN >> new >> delete all functions present >>
pawn Код:
#include <a_samp>
// Custom functions, hooking, whatev's you gotta do here
And when I'm done, copy paste all this, create new .inc file in PAWNO >> Includes and paste them inside that
And then I #include <incfilename> on top of script I need to use it in
It works the same way as a script does, and when you compile the script you're using this .INCLUDE file in, it'll show you if there are any errors in the include's script.
Re: How would you make a include? -
Misiur - 22.02.2013
@Rajat_Pawar
http://forum.sa-mp.com/showpost.php?...3&postcount=35