SA-MP Forums Archive
Includes path - 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)
+---- Forum: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Includes path (/showthread.php?tid=640053)



Includes path - Geebrox - 27.08.2017

How to specify multiple directories for include files, when running pawncc.exe?
I know about option "-i". But, can I use multiple directories to search for any includes?


Re: Includes path - renatog - 27.08.2017

Yes, you can use multiple directories to search include files.
I don't know how to add/edit args in pawno editor, but here goes an example:
Код:
"-iD:\\YourFiles\\SAMP\\YourGamemode\\YourIncludes", "-iD:\\SomeFiles\\SAMP\\SomeIncludes"
It will use both (...)\\YourIncludes and (...)\\SomeIncludes directories to search for includes.


Re: Includes path - 10MIN - 27.08.2017

As far as I know: No.
But you can do something like:
Код:
#include "D:\samp\blabla\my_includes\my_include.inc"



Re: Includes path - Geebrox - 27.08.2017

Quote:
Originally Posted by renatog
Посмотреть сообщение
Yes, you can use multiple directories to search include files.
I don't know how to add/edit args in pawno editor, but here goes an example:
Код:
"-iD:\\YourFiles\\SAMP\\YourGamemode\\YourIncludes", "-iD:\\SomeFiles\\SAMP\\SomeIncludes"
It will use both (...)\\YourIncludes and (...)\\SomeIncludes directories to search for includes.
Yeah man, it works!! THANKS a lot.