I'm looking to import from the file configs/core.cfg. The structure looks exactly like a KeyValue with comments. The issue is I cannot load it, here is the code + error. If anyone knows a way to fix it, or yield the variables from memory already would be appriciated, thanks.
EDIT: When I removed the Comments inside the KV file, it started to work.
PHP Code:
char cPath[512];
BuildPath(Path_SM, cPath, sizeof(cPath), "configs/core.cfg");
KeyValues kValues = new KeyValues("");
kValues.SetEscapeSequences(true);
kValues.ImportFromFile(cPath);
__________________