29.01.2011, 09:03
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:
Whenever I use HouseData, it'll give the error "Array index out of bounds":
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];
pawn Код:
House1 = CreatePickup(1273, 23, HouseData[i][hx1], HouseData[i][hy1], HouseData[hz1]);