ID:138824
 
Code:
        Create()
if(fexists("players/[src.key].sav"))
src<<"Delete your old savefile first!"
return
src.cansave=1
world<<"<font color=yellow><font size=+1>[src] has started a new game!"


Problem description:
I have no idea what is causing it, but there is a few seconds delay after the Create() proc is started before it actually does something. I debugged it with an output at the start of the proc, just to make sure it if it's the save file check causing it, but apparently it isn't.
Post the snippet of code that's calling the create proc please?
In response to Saucepan Man
    Login()
while(!src.cansave)
switch(input("Welcome to Lair! What do you want to do?")in list("Load","Delete","New"))
if("Load")
src.LoadC()
if("Delete")
src.DelC()
if("New")
src.Create()


Shouldn't be a problem there?
Code:
Create()
world<<"[world.time]"
if(fexists("players/[src.key].sav"))
src<<"Delete your old savefile first!"
return
world<<"[world.time]"
src.cansave=1
world<<"<font color=yellow><font size=+1>[src] has started a new game!"

Put one before and after the usr.Create() as well; and paste the results :\
In response to Saucepan Man
After I did that it somehow became normal again. O_o Guess it may just be my PC that's been possessed by evil programming spirits.
In response to Shaoni
I'm thinking you did what I do all the time - and the problem WAS in the fexists thing. But youve since cleared fexists. or f actually DOES exist. OR some such change.