17.05.2014, 18:19
Another possibility is that there are more rows in the database than the size of the array to store them.
Remove the "house" variable completely and keep only the "total". Replace in the HouseInfo array, the indexes with "total" and inside the while loop (at the top of it):
Remove the "house" variable completely and keep only the "total". Replace in the HouseInfo array, the indexes with "total" and inside the while loop (at the top of it):
pawn Код:
if (total >= sizeof (HouseInfo))
{
print("Error: There are currently more rows in the database for the houses than the size of the array to be stored.");
break;
}