18.01.2014, 20:18
Hello, i have a problem with getting array index out of bounds ONLY when there are 100 or more rows in the mysql table.
This is the code:
Why is it giving me that weird thing. Its not even when compiling, it shows up when loading the server via crashdetect.
This is the code:
pawn Код:
forward OnBansLoad();
public OnBansLoad()
{
new
rows,
fields
;
cache_get_data( rows, fields, Handle);
if(!rows)
{
print("Bans table is empty, no results found.");
return 1;
}
new
i = 0
;
while(rows > i)
{
APlayerData[i][BanVariable] = true;// You had only this, no loading any other
printf("Ban %d Loaded", i);
i++;
}
return 1;
}