hide mouse
dim save$(2)
top:
if file exist("Gametest.sav")=1
rem if the file exists then open it
load array "Gametest.sav",save$(0)
else
rem create a new person
ink rgb(0,255,0),1
print "What is your name stranger?"
input name$
save$(1)=name$
cls
print "You also need a second ID to enter, something like a password..."
input "Password: ";pass$
save$(2)=pass$
save array "Gametest.sav",save$(0)
rem add to server or whatever
endif
rem login the user
cls
ink rgb(255,255,255),1
input "Username: ";name$
input "Password: ";pass$
rem make sure the password and name is correct..
if name$=save$(1) and pass$=save$(2)
ink rgb(0,255,0),1
print "Welcome ";name$
else
ink rgb(255,0,0),1
print "Sorry we dont know you, you may have spelled your name or password incorrectly"
print "or you havent signed up. Otherwise leave."
wait key
goto top
endif
Famous last words -
Pull the pin and count to what?