Array index out of bounds
#1

I am having an error ґArray index out of boundsґ. I know what it means, but somehow I can't manage to fix it as I don't see the problem.

I'm using an enum and stuff to load the data.

Here is the code:

pawn Код:
enum HDATA
{
HouseOwner[255],
Float:hx1,
Float:hy1,
Float:hz1,
Float:hx2,
Float:hy2,
Float:hz2
}

#define MAX_HOUSES 200
new HouseData[MAX_HOUSES][HDATA];
Whenever I use HouseData, it'll give the error "Array index out of bounds":

pawn Код:
House1 = CreatePickup(1273, 23, HouseData[i][hx1], HouseData[i][hy1], HouseData[hz1]);
I don't see the problem.
Reply


Messages In This Thread
Array index out of bounds - by Biesmen - 29.01.2011, 09:03
Re: Array index out of bounds - by Kwarde - 29.01.2011, 09:07
Re: Array index out of bounds - by Biesmen - 29.01.2011, 09:10
Re: Array index out of bounds - by armyoftwo - 29.01.2011, 09:29
Re: Array index out of bounds - by Biesmen - 29.01.2011, 09:38
Re: Array index out of bounds - by Kwarde - 29.01.2011, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)