Problems with precalculated arrays.

Blitz3D Forums/Blitz3D Beginners Area/Problems with precalculated arrays.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

function save_coords()
*write file*
for a=0 to array_max_position
writestring (file,array(array_position))
writestring (file,array2(array_position))
array_position=array_position+1
next
closefile file


surely you should be using the loop in the writestring function otherwise. Something like this.


function save_coords()
*write file*
for a=0 to array_max_position
    writestring (file,array(a))
    writestring (file,array2(a))
next
closefile file