Array index out of bounds
#1

FIXED. Close please.
Reply
#2

Attempted to read/write array element at index 818 in array of size 800

Maybe if you have this

PHP код:
#define MAX_HOUSES (800) 
Change it to:

PHP код:
#define MAX_HOUSES (1000) 
Reply
#3

Do not use the primary key as the array index. Auto generated ids do not get re-used and as houses get added and removed those ids will eventually all exceed the array size.
Reply
#4

Thank you both, it has been fixed. +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)