ID:262342
 
Code:
client
proc
SaveMob()
var/savefile/F = new("players.save")
var/char_ckey = ckey(mob.name)
F["[ckey]/[char_ckey]"] << mob

LoadMob(char_ckey)
var/savefile/F = new("players.sav")
F["[ckey]/[char_ckey]"] >> mob

mob
verb
Save()
client.SaveMob()
sleep(30)
src << "Your character has been saved!!!"

mob
verb
Load()
client.LoadMob()
src << "Your character has been loaded!!!"


Problem description: When I try to laod, the screen just freezes.

That would be your LoadMob or SaveMob code.. We can't really help you without that information.
In response to CaptFalcon33035
Oh, didn't realize that. I edited the post.
In response to Mecha Destroyer JD
Try:
client
proc
SaveMob()
var/savefile/F = new("players.sav")
var/char_ckey = ckey(mob.name)
F["[ckey]/[char_ckey]"] << mob

LoadMob(char_ckey)
var/savefile/F = new("players.sav")
F["[ckey]/[char_ckey]"] >> mob

mob
verb
Save()
client.SaveMob()
sleep(30)
src << "Your character has been saved!"

mob
verb
Load()
client.LoadMob()
src << "Your character has been loaded!"

A problem I immediately noticed was that you defined two different saves, players.save and players.sav. You cannot load a savefile from another savefile that doesn't exist.

This is a vital problem to be avoided. Always check to be sure that the saves files match.

In response to CaptFalcon33035
I run the game and press load, and the charcter still freezes. Do I have to make it load before the player logs in? I'm tryin to make this work with a title screen.
In response to Mecha Destroyer JD
Send me your login system, only. I'll fix it up for you.

My AIM is LuciferDLord
MSN Kicks me off the net, so can't use it