ID:139033
 
Code:
mob/Loginscreen
proc/CHECKSAVE()
if(!hasSavefile(src.ckey))
src.CREATE()
world
mob= /mob/Loginscreen
obj
Titlescreen
Click()
usr.CHECKSAVE()//Error here


Problem description:

Codes\Character Creation.dm:110:error: usr.CHECKSAVE: undefined proc

I defined the proc, set the world/mob to /mob/Loginscreen and it still doesn't work.
What's wrong?
The "usr" you're using refers to client, not to the mob.
In response to Andre-g1
Not quite, it actually is referring to the /mob of that /client (aka client.mob). You were close though ^_^'
http://www.byond.com/ members/?command=reference&path=proc%2Fvar%2Fusr

The issue here is that usr is defined to have the path /mob and the procedure that Raimo wants is under /mob/Loginscreen.

There are two choices here:
1) Define the procedure to be under /mob, not /mob/Loginscreen, so that usr can access it.

OR

2) Have a variable with the path /mob/Loginscreen and invoke the procedure:
var/mob/Loginscreen/M = usr
M.Create()
In response to GhostAnime
Your second way is exactly what I was looking forward to. Thanks GhostAnime. But, also thank you Andreg1, for your try to help me out! I appreciate it both.