ID:174595
 
I'm trying to make a Login screen. My load coding is a proc under a client. But my LoadGame button is a turf. How would I call the loading proc(I get a runtime error)? Which one should I change. All help is appreaciated.

P.S. I searched the forum but nothing that came up was any useful. Maybe there is some sort of demo?
Show us the runtime error, the load proc, and the turf.Click()(if thats what you use).
In response to Jotdaniel
Here is what you wanted:

Runtime Error:

runtime error: undefined variable /turf/Continue/var/ckey
proc name: Click (/turf/Continue/Click)
usr: SSChicken (/mob)
src: Continue (143,53,8) (/turf/Continue)
call stack:
Continue (143,53,8) (/turf/Continue): Click(Continue (143,53,8) (/turf/Continue))

Load Proc:
client/proc/LoadMob(char_ckey)
var/savefile/S = new("players/[src.ckey].sav")
S["/[ckey]/[char_ckey]"]>>src.mob
return char_ckey

Turf Click:
turf
Continue
icon=''
Click(client/C)
C.LoadMob(C.ckey)