ID:145107
 
Code:
obj/LOGIN/join/DblClick()
var/firstletter=copytext(usr.ckey, 1, 2)
if(fexists("players/[firstletter]/[usr.ckey].sav"))
client.Load()
else
//This where the new charcter stuff goes


Problem description:

Now this is wierd: System\Player System\Player System.dm:10:error:client.Load:undefined var

Heres the save system I use aswell

client
proc
Load()
var/firstletter=copytext(usr.ckey, 1, 2)
if(usr == usr)
var/savefile/load
load = new ("players/[firstletter]/[src.ckey].sav")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z




Save()
var/firstletter=copytext(usr.ckey, 1, 2)
if(usr == usr)
var/savefile/save
save = new ("players/[firstletter]/[src.ckey].sav")
save["mob"] << src.mob
save["x"] << src.mob.x
save["y"] << src.mob.y
save["z"] << src.mob.z



It's in the obj tree, and the datum is nothing.
So, because it's in an obj tree, it'll choose the object as datum, and an obj doesn't have a client. Thus, the error

All in all, put <code>usr</code> infront of it.
In response to Mysame
Now when I Double click it it dosent load...and yes the save file does exist
In response to Metamorphman
why not just use Read() and Write() procs?
In response to Killer22
Look my problem right now is that the obj/login/join wont appear in the game.Therefore I cant DblClick it
In response to Metamorphman
Metamorphman wrote:
Look my problem right now is that the obj/login/join wont appear in the game.Therefore I cant DblClick it

GIVE IT AND ICON
obj/LOGIN/join
icon='blah.dmi'


then it will appear in the game as long as you put it on the map!
In response to Killer22
I ahev and it still dosent work!!
In response to Metamorphman
Have you placed it on the map itself? i know thats a stupid question but you never know..
In response to A.T.H.K
Yes..Yes I have..lol
In response to Metamorphman
Some one help me out