ID:149663
 
I made a proc that saves my characters stats. When you logout it calls the proc, but I keep getting this error saying:

runtime error: Cannot execute null.SaveChar().
proc name: Logout (/mob/Logout)
usr: Malakian (/mob/player)
src: Malakian (/mob/player)
call stack:
Malakian (/mob/player): Logout()

any ideas?
I tried making save proc available in a verb, but when I try to compile it as

verb/Save()
client.SaveChar()

it says client.SaveChar is an undefined var.

any help would be greatly appreciated.
When calling the proc on logout use client/Del() and also try src.client.SaveChar()
In response to Super16
I tried what you said super, and im still getting same problem. and I also noticed this:

runtime error: Cannot modify null.cd.
proc name: LoadChar (/client/proc/LoadChar)
usr: Malakian (/mob/player)
src: Malakian (/client)
call stack:
Malakian (/client): LoadChar()
Malakian (/mob/player): Login()


any help with that?

In response to Malakian
Still havent figured this out, any help please.
In response to Malakian
Malakian wrote:
I tried what you said super, and im still getting same problem. and I also noticed this:

runtime error: Cannot modify null.cd.
proc name: LoadChar (/client/proc/LoadChar)
usr: Malakian (/mob/player)
src: Malakian (/client)
call stack:
Malakian (/client): LoadChar()
Malakian (/mob/player): Login()

any help with that?

Unless you actually post the part of the code that's giving you that error, nobody can help you.

I suggest you turn on debugging mode (set your project preferences) so you can see which line number has the error, and then post your LoadChar() proc and show us which line is crashing.

Lummox JR