18.03.2011, 15:39
Honestly, why did you bother posting this? If your aim was laughs, you succeeded, i LOLD pretty hard. Its pretty annoying as well though!
Anyways, an include is just code that is included into another file. To make it, you would just go about coding as you normally would, but the thing about includes is they're sectioned off by the #section directive, so all global variables should be declared "static" so they keep their values (Also its a good idea to precede the global variables with "g_" so people dont get issues due to your var naming...example: static g_VariableName; ).
If you plan on using callbacks in the include you'll also need to use callback hooks, and thanks to Mr.****** that is VERY easy! Its literally one line, and is the fastest method yet. Read about it here: https://sampforum.blast.hk/showthread.php?tid=241446
But yes, other than using globals/callbacks, code exactly how you normally would.
Anyways, an include is just code that is included into another file. To make it, you would just go about coding as you normally would, but the thing about includes is they're sectioned off by the #section directive, so all global variables should be declared "static" so they keep their values (Also its a good idea to precede the global variables with "g_" so people dont get issues due to your var naming...example: static g_VariableName; ).
If you plan on using callbacks in the include you'll also need to use callback hooks, and thanks to Mr.****** that is VERY easy! Its literally one line, and is the fastest method yet. Read about it here: https://sampforum.blast.hk/showthread.php?tid=241446
But yes, other than using globals/callbacks, code exactly how you normally would.