Include?
#4

Quote:
Originally Posted by Markx
Посмотреть сообщение
Hmm dunno xD
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.
Reply


Messages In This Thread
Include? - by sciman001 - 18.03.2011, 15:23
Re: Include? - by Markx - 18.03.2011, 15:25
Re: Include? - by sciman001 - 18.03.2011, 15:28
Re: Include? - by Kyosaur - 18.03.2011, 15:39
Re: Include? - by sciman001 - 18.03.2011, 15:45
Re: Include? - by sciman001 - 18.03.2011, 15:47
Re: Include? - by Kyosaur - 18.03.2011, 15:55
Re: Include? - by sciman001 - 18.03.2011, 16:01
Re: Include? - by Kyosaur - 18.03.2011, 16:05
Re: Include? - by Markx - 18.03.2011, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)