LoadF()
if(fexists("savefiles/[src.ckey].sav"))
var
savefile
F = new("savefiles/[src.ckey].sav")
lx
ly
lz
mob
newmob = new()
F["lastx"] >> lx
F["lasty"] >> ly
F["lastz"] >> lz
F["mob"] >> newmob
newmob.loc = locate(lx,ly,lz)
newmob = src.client
return
else
alert("No Save File found","Error")
src.InitiateLogin()
Problem description: I just recently started to learn how to code (mostly looking over demos and libraries) and I found one system that works...for the most part..
At the moment I have it setup with just a series of Switches for players to work with when creating their characters. Creating a new character works fine, Deleting works fine, but when I Load a character, it loads the character like I expect it to, but then it goes back to the first Login switch that brings up the selections for Create Load and Delete again.
From what I can see I don't have any code that would re-initiate the Login procedure when a save file Is found -- only when it Isn't found (and I've tested it, when there's no save present, it returns with the "No Save File found" error and restarts the Login).
How can I get it to stop repeating the Login whenever a player Loads?