How would you make a include?
#1

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.
Reply
#2

pawn Код:
#if defined _myincludefilename_included
    #endinput
#endif
#define _myincludefilename_included
This should be at the VERY TOP!
Reply
#3

I know, But the function isn't affecting the server or even working :/
Reply
#4

What is actually inside the .inc (or .pwn or .txt, actually you can include ANY file type) file?
Reply
#5

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.
Reply
#6

@Rajat_Pawar http://forum.sa-mp.com/showpost.php?...3&postcount=35
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)