Posts: 417
Threads: 71
Joined: Dec 2013
Reputation:
0
Hi,
I have a lot of admin CMDs and I want to put them in an include but how can I do it ?
Just create a file .inc and copy/paste all my CMDs in it then include this file in my GM ?
Thank you.
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
well yes but it would be more complicated since you will need the server database i guess? which you use for admin system else if there is not something like that open new.pwn copy paste what you want. then save as yourfile.inc WARNING: DO NOT COMPILE
Posts: 422
Threads: 107
Joined: Sep 2013
Reputation:
0
Yes, but don't forget in the top of your include to include libraries of your codes (sscanf, streamer etc.)
Its untested but i think it work with cmds.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
I don't see why there'd be a problem with the database. You can include files literally everywhere within a script. Even within function bodies.