Something wierd happend, it continues to crash with this part:
if points > highscores(max_board).points
highscores(max_board).name$ = name$
highscores(max_board).points = points
sort array highscores(),-1
open datafile to write FileID,"highscore.dat"
for write = 1 to max_board
write datafile string FileID,highscores(write).name$
write datafile integer FileID,highscores(write).points
next write
close datafile FileID
exit
endif
Am i using it wrong?
I`m pretty sure this part is enough to show what is wrong, i can provide more code if this is not good.
EDIT: I get everything working.
There was something left behind, the "exit" comand and the sorting can`t do the array properly from given range, but the whole one.So everywhere i was using "for blabla = 1 to max_value", which is 10, i made to "blabla = 0 to max_value" + decreased max_value to 9.This was causing silent crash, because i didn`t get 0 position in the counts.There was some minor adjustment with one offset variable calculation too, it was based to max_value...
Thanks a lot to everybody!Thanks IanM!
There is the thread with the whole stuff:
http://forum.thegamecreators.com/?m=forum_view&t=169546&b=6&p=0
Where there is a will, there is a way.
I often edit my posts, that`s who i am