i keep getting this error whenever i us my attack button.
runtime error: Cannot read null.key
proc name: DeathCheck (/mob/proc/DeathCheck)
usr: MagicMan (/mob/character)
src: Tidus (/mob/Tidus)
call stack:
Tidus (/mob/Tidus): DeathCheck(Tidus (/mob/Tidus))
Wooden Sword (/obj/Wooden_Sword): Slash()
ID:145157
Jun 2 2006, 2:49 pm
|
|
Jun 2 2006, 2:52 pm
|
|
It would be useful to show us some code.
|
In response to Popisfizzy
|
|
Code:
mob Problem description: runtime error: Cannot read null.key proc name: DeathCheck (/mob/proc/DeathCheck) usr: MagicMan (/mob/character) src: Tidus (/mob/Tidus) call stack: Tidus (/mob/Tidus): DeathCheck(Tidus (/mob/Tidus)) Wooden Sword (/obj/Wooden_Sword): Slash() |
In response to MagicBLC13
|
|
You pass an argument, and then you never use it. I think you wanted b instead of usr, and you never checked to see if b was actually a player (after replacing usr with b), and you're trying to access it's client, which is null, so you're getting this runtime error!
|