Hi!
I am currently in need of a very simple highscore which basicly compares the old highscore with the players score. If the players score is higher then it would delete the scorefile and make a new with the new highscore.
I got this code:
if file exist ("score.score") = 1 and high = 0
high = 1
open to read 1,"score.score"
read float 1,highscore#
close file 1
if score > highscore#
delete file "score.score"
open to write 1,"score.score"
write byte 1,score
close file 1
endif
endif
if file exist ("score.score") = 0 and high = 0
open to write 1,"score.score"
write byte 1,score
close file 1
high = 1
endif
I know that byte only holds 255, but when I write a byte it works (almost.. if the players score is lower than the highscore then that gets the new highscore...

)
Any help is appreaciated.
Its quite urgent