NexiusTailer / Nex-AC

Anticheat system
https://pawn.wiki/index.php?/topic/27641-nex-ac/
GNU Lesser General Public License v3.0
213 stars 155 forks source link

compatibility with old folder #240

Closed kolor4do closed 3 years ago

kolor4do commented 3 years ago

the language does not load when using sa-mp's default include folder, which is in the main directory. That way it works for everyone.

NexiusTailer commented 3 years ago

Thank you, will be merged in v1.9.57.

NexiusTailer commented 3 years ago

Making other updates for the future release I noticed that this change will be a problem for some situations when both nex-ac.inc and its .lang files are located not directly in "pawno/include" folder, but for example something like here: "pawno/include/ac_subfolder" or not even in "pawno" folder at all (there are many practices nowadays to put includes into a different folder like "src" or similar, which located in the server directory).

UPD: Seems I only now realized you suggest to include and search for .lang file (apparently, along with .inc file too) not in "pawno/include", but just in "[server directory]/include" folder. That path is for default grandlarc includes in SA-MP server package and few people use it as a main directory for all dependency stuff. In this case, I don't think your change would be justified.