Function calls from other directories
#1

I'm trying to organise my source, but I've noticed an issue in pawn:

http://ww3samp.com/jay/Misc/callfunctions

I'm trying to call a function from the core file which is located in Testing/Testing/testing.pwn
However the compiler doesn't pick it up for reason, anyone know why, or a fix?
Reply
#2

The #include directive use as default the path pawnfolder\includes, if you want include some file from somewhere else you must use the full path to the file from the pawn folder.

So, taking as example your file at gamemodes\Testing\Testing\testing.pwn, the correct way is:

pawn Код:
#include "../gamemodes/Testing/Testing/testing.pwn"
If I said something wrong, please correct me, I'm falling asleep.
Reply
#3

http://forum.sa-mp.com/index.php?topic=143056.0 Lmao!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)