Including files
#3

There is a certain maximum length for include paths, although I don't know it by heart. I believe it was 32 but it could be less, still. If the path is longer then it is truncated, so what the compiler sees might as well just be "../include/callbacks/OnGameMode", which obviously results in all kinds of glitchy behavior. In any case, try using backslashes instead of forward slashes.

Although I must say that separating a gamemode like that is a terrible design decision. Rather separate by functionality than by type; e.g. all house related stuff in one file and all business related stuff in another file.
Reply


Messages In This Thread
Including files - by Jonesy96 - 31.05.2016, 23:11
Re: Including files - by Jonesy96 - 01.06.2016, 08:45
Re: Including files - by Vince - 01.06.2016, 08:50
Re: Including files - by xTURBOx - 01.06.2016, 09:03
Re: Including files - by Jonesy96 - 01.06.2016, 09:10
Re: Including files - by Vince - 01.06.2016, 09:32
Re: Including files - by Jonesy96 - 01.06.2016, 09:52
Re: Including files - by Konstantinos - 01.06.2016, 10:06
Re: Including files - by Jonesy96 - 01.06.2016, 10:18
Re: Including files - by Jonesy96 - 01.06.2016, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)