How should I proceed ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How should I proceed ? (
/showthread.php?tid=504723)
How should I proceed ? -
anou1 - 05.04.2014
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.
Re: How should I proceed ? -
vassilis - 05.04.2014
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
Re: How should I proceed ? -
Lidor124 - 05.04.2014
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.
Re: How should I proceed ? -
anou1 - 05.04.2014
Okay thank you, I will try
+Rep both of you
Re: How should I proceed ? -
Vince - 05.04.2014
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.