your 2nd code in the 1st post contained i++ instead of j++ this is the reason of the error message


Free world editor for 3D Gamestudio: MapBuilder Editor