Hi! So I have
PHP Code:
static data[192], steamid[32], password[32], flags[32], mode[10];
ArrayClear(g_steamid);
ArrayClear(g_password);
ArrayClear(g_flags);
ArrayClear(g_mode);
new f = fopen(filename, "rt");
while(!feof(f))
{
fgets(f, data, 191);
if(data[0] == "/" && data[1] == "/" || data[0] == ";" || !data[0] || data[0] == "^n")
continue;
if(parse(data, steamid, 31, password, 31, flags, 31, mode, 9) != 4)
continue;
ArrayPushString(g_steamid, steamid);
ArrayPushString(g_password, password);
ArrayPushCell(g_flags, read_flags(flags));
ArrayPushCell(g_mode, read_flags(mode));
}
I'm getting an array indexing error for the first if statement. Could you please help? I'm clueless.
__________________