Had a bug while loading the chk_cvars.cfg file. This was because I first didnt had any comments in that file added this later and forgot to update the old code properly.
Old code:
PHP Code:
new fp=fopen(cc_configfile, "rt")
lines = 0
new left[64], right[64]
while (!feof(fp)) {
fgets(fp, buf, 63)
trim(buf)
if (strlen(buf) > 0) {
strtok(buf, left, 63, right, 63, ' ')
// Check if line is not a comment
if (strcmp(left, "//"))
cvars_buf[lines] = buf
}
lines++
}
fclose(fp)
New code:
PHP Code:
new fp=fopen(cc_configfile, "rt")
cvar_items = 0
while (!feof(fp))
{
fgets(fp, buf, 63)
trim(buf)
if (strlen(buf) > 0)
{
// Check if line starts with comment sign
if (strfind(buf, "//", 0, 0) != 0)
{
cvars_buf[cvar_items] = buf
cvar_items++
}
}
}
fclose(fp)