Help with include
#4

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:

Код:
#undef _inc_map
This symbol is automatically defined and is named "_inc_filename" where filename is the file's name without path and extenstion.
Reply


Messages In This Thread
Help with include - by hoonz - 01.03.2018, 19:30
Re: Help with include - by Ducati - 01.03.2018, 19:37
Re: Help with include - by AroseKhanNiazi - 02.03.2018, 01:02
Re: Help with include - by NaS - 02.03.2018, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)