23.05.2013, 19:09
Hi there.
I've found this strange problem while I was trying to organize a gamemode that me and a friend were scripting by seperating it by files, such as placing the callbacks in each seperate file, like
and so on.
I also made a folder for definitions, such as macros, variables and others
For now I got these two files
the file colors.pwn only has defined colors while general.pwn has all other defines such as dialogIDs, redifinition of max_players and such.
The problem being, the colors.pwn works perfectly fine, while general.pwn, even though the compiler knows that the file exists, it gives errors when compiling because of undefined stuff, which they exist in this file.
Even more strange, when I change that file to another place, such as
it works perfectly fine.
Has anyone ever happened a similar case? or even the same one?
Know any solutions or workarounds?
Thanks for reading and thanks in advance for any replies.
I've found this strange problem while I was trying to organize a gamemode that me and a friend were scripting by seperating it by files, such as placing the callbacks in each seperate file, like
Код:
#include "../src/Callbacks/OnPlayerSpawn.pwn"
I also made a folder for definitions, such as macros, variables and others
For now I got these two files
Код:
#include "../src/Definitions/Macros/colors.pwn" #include "../src/Definitions/Macros/general.pwn"
The problem being, the colors.pwn works perfectly fine, while general.pwn, even though the compiler knows that the file exists, it gives errors when compiling because of undefined stuff, which they exist in this file.
Even more strange, when I change that file to another place, such as
Код:
#include "../src/Definitions/general.pwn"
Has anyone ever happened a similar case? or even the same one?
Know any solutions or workarounds?
Thanks for reading and thanks in advance for any replies.