02.03.2018, 15:49
You can include any kind of file, if the content makes sense to the compiler. So the .pwn extension is not the problem here.
What could be the case is, that there is another file named "map.pwn" in another directory/module.
The include guard prevents including two files with the exact same name more than once.
If you included another "map.pwn" file before, you can undefine its symbol before including the next one:
This symbol is automatically defined and is named "_inc_filename" where filename is the file's name without path and extenstion.
What could be the case is, that there is another file named "map.pwn" in another directory/module.
The include guard prevents including two files with the exact same name more than once.
If you included another "map.pwn" file before, you can undefine its symbol before including the next one:
Код:
#undef _inc_map