Posts: 102
Threads: 24
Joined: Jul 2010
Reputation:
0
How do i make an include? like a include that includes functions. Like dudb -.- but not exactly.
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
Save a file under the .inc filetype, I'd suggest going to File > Save as > <file.inc>
Posts: 102
Threads: 24
Joined: Jul 2010
Reputation:
0
...... i know how to do that, thats not what i mean..... how do i script one not save a file.....
Posts: 1,228
Threads: 133
Joined: Oct 2009
Reputation:
0
you should really learn how to script in pawn first and then worry about includes.
includes are tough to make.
Posts: 1,130
Threads: 77
Joined: Jan 2010
Reputation:
0
Just see others includes..
Posts: 102
Threads: 24
Joined: Jul 2010
Reputation:
0
im good at scripting in pawn im not a noob, i just never understood includes..... iv made my own login system, admin system, house system, and car registering to player system. just not an include.... lol
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
I do not understand whats that hard about includes.
Just imagine them to be a part of your main code, just externalized into another file. To define the include as one, you mostly use the same "header", you can use the first lines of a_samp.inc or so.
Then all you have to do, is to add the code you like. This can be stocks, publics, timers.... On compile, the compilers just handles them, as if they were in the same file with the normal script.