for(new i = 0; i < rows && i < MAX_FACTORIES; i++)
PHP код:
for(new x = 0; x < MAX_FACTORIES; x++)
nah, the problem aint that, I dont want of it to start at 0. Basically the IDS are going from 1 inside the setup I made.
Also tried to test with 0 for fun, still nothing