At the end of logging in (I'm not gonna post the whole login code because I don't feel you need it all) I call the proc usr.Autosave(). Now the proc is...
mob/proc
Autosave()
sleep(6000)
client.base_SaveMob()
usr.Autosave()
It's very simple and works well for awhile. However, after an extended play time I began getting runtime errors saying that the savefile for the character could not be accessed. I didn't think to copy and paste it last night at 3 in the morning, but I will next time I see it. The problem is that it wasn't saving anymore, and after that, it doesn't save even when they exit.
Does anybody have any idea why this is happening? Thanks in advance.
First of all, don't uput usr in procs, with the exception of Click(), DblClick(), and Stat(). Also, you have an infinite loop, so you need to use spawn()