[Array index out of bounds] problem.
#6

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):
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;
}
Reply


Messages In This Thread
[Array index out of bounds] problem. - by rappy93 - 17.05.2014, 17:40
Re: [Array index out of bounds] problem. - by Konstantinos - 17.05.2014, 17:44
Re: [Array index out of bounds] problem. - by rappy93 - 17.05.2014, 17:47
Re: [Array index out of bounds] problem. - by Konstantinos - 17.05.2014, 17:51
Re: [Array index out of bounds] problem. - by rappy93 - 17.05.2014, 17:56
Re: [Array index out of bounds] problem. - by Konstantinos - 17.05.2014, 18:19
Re: [Array index out of bounds] problem. - by rappy93 - 17.05.2014, 18:22
Re: [Array index out of bounds] problem. - by Konstantinos - 17.05.2014, 18:24
Re: [Array index out of bounds] problem. - by rappy93 - 17.05.2014, 18:27
Re: [Array index out of bounds] problem. - by rappy93 - 17.05.2014, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)