mob/verb/Save()
set hidden=1
var/savefile/F = new("player/[usr.ckey].sav")
Write(F)
mob/verb/Load()
set hidden=1
if(fexists("player/[usr.ckey].sav"))
var/savefile/F = new("player/[usr.ckey].sav")
Read(F)
usr.afk = 0
usr.Save()
else
usr.level=1
usr.Save()
usr<<"Welcome to [world.name]"
return ..()
mob/Write(savefile/F)
..()
F["level"] << src.level
F["playtime"] << src.playtime
mob/Read(savefile/F)
..()
F["level"] >> src.level
F["playtime"] >> src.playtime
mob/Login()
src.Load()
mob/Logout()
..()
src.Save()
del(src)
It's not saving or loading the players level or play time. Help?
~>Jiskuha
You are not using Write() and Read() correctly.
Check out this tutorial which explains the steps in detail.