SA-MP Forums Archive
Problem with custom file location - 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: Problem with custom file location (/showthread.php?tid=581239)



Problem with custom file location - TwinkiDaBoss - 11.07.2015

Alright so Ive created a small folder inside Pawno > include > Modules and now im trying to load shit from it but I keep on getting errors that there are undentified symbols.

Any solutions

pawn Код:
#include "../include/Modules/Misc/Test.inc"
The Test.inc I took it and pasted it into .pwn file and compiled it, no errors or whatso ever. But when I try the use functions from it inside the Gamemode itself I get shitton of erorrs.

pawn Код:
error 017: undefined symbol "Test_Function"

Test_Function is

pawn Код:
Test_Function
{
    print("hi");
    return true;
}



Re: Problem with custom file location - TwinkiDaBoss - 11.07.2015

Resolved. Had to use \ instead of / for some reason.
1 folder must be loaded using \ and the 2nd one doesnt matter / or \
Weird bug it is.
But works tho