I finally got it to kind of work... I had to type Jim.sav though... But now, the loop is messing up badly...
Here's the code that's messing up:
+ Code Snippet do
cls
box 0,0,1024,768,rgb(255,0,0),rgb(255,0,0),rgb(255,0,255),rgb(255,0,255)
messagebox("Please enter your name.","")
if inputbox(0,-30,playerdata(1).name)
playerdata(1).name=inputbox(0,-30,playerdata(1).name)
exit
endif
loop
do
cls
box 0,0,1024,768,rgb(255,0,0),rgb(255,0,0),rgb(255,0,255),rgb(255,0,255)
if file exist("Jim.sav")=1
cls
exit
exit
exit
else
open to write 1,playerdata(1).name+".sav"
close file 1
goto _new_game
endif
loop
do
cls
messagebox("Are you sure you want to continue? Your file will overwrite.","Type yes to overwrite, type no to change your name.")
if inputbox(0,-30,continue$)
continue$=lower$(inputbox(0,-30,continue$))
if continue$="yes"
goto _new_game
else
goto _menu_new_game
endif
endif
loop
Any ideas? Thanks in advance.
[EDIT]
I think I found my error... I need another if after the else... so it doesn't keep repeating... Wow I'm stupid
