Run time error 4: "Array index out of bounds" help
#2

new f = MAX_OBJ+1; = MAX_OBJ + 1 = 117 + 1 = 118
if player is not in any range 'f' is still 118
so 'f' will crash array here -> DestroyObject(dGunData[f][ObjID]);
Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" help - by GGW - 16.01.2015, 19:49
Re: Run time error 4: "Array index out of bounds" help - by Jefff - 16.01.2015, 20:00
Re: Run time error 4: "Array index out of bounds" help - by GGW - 16.01.2015, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)