02.01.2017, 22:46
Probably related to the directory seperator. Windows uses the backslash so it treats a forward slash as part of the filename. The same problem occurs if trying to include files with forward slashes; a path greater than 36-ish characters in length produces glitchy behavior. consider doing something like:
Obviously defining OS_WINDOWS as necessary. Comment the line when compiling for a Linux host.
PHP код:
#define OS_WINDOWS
#if defined OS_WINDOWS
static const pattern[] = \"\groups\names\%s.ini";
#else
static const pattern[] = \"/groups/names/%s.ini";
#endif
format(string, sizeof(string), pattern, GroupInfo[groupid][gName]);