The Parameter errorLine of the native ConfigReadFile isn't working correctly, it's returning garbish.
PHP Code:
decl String:errorMessage[64], String:path[PLATFORM_MAX_PATH];
new errorLine;
if (!ConfigReadFile(config, path, errorMessage, sizeof(errorMessage), errorLine)) {
LogError("Can't read config file \"%s\" (Error: \"%s\" on line %d)", path, errorMessage, errorLine);
return;
}
Returns: Can't read config file "xyz.cfg" (Error: "syntax error" on line -1378652702)
__________________