Code:runtime error: Cannot read null.HP
proc name: DeathCheck (/mob/proc/DeathCheck)
usr: whatever (/mob)
src: whatever (/mob)
call stack:
whatever (/mob): DeathCheck(null)
whatever (/mob): attack(Ivysaur (/mob/Ivysaur))
Problem description:OMG!! It won't work, Can someone please help me? It says this whenever i attack ANY creature, not just Ivysaur?
ID:264036
![]() May 17 2008, 1:14 pm
|
|
![]() May 17 2008, 1:20 pm
|
|
We can't help you without code. We are not telepaths or people with remote access to your PC.
|
Sure we can. The error message is pretty damn clear: he's not providing an argument to DeathCheck().
The DeathCheck() is also written backwards: src should be the mob that is being attacked, while the argument should be the attacker. He has it the other way around, which just makes things more complicated. |
Garthor wrote:
He has it the other way around, which just makes things more complicated. Which is exactly why I had assumed we couldn't help him without the code. |
Well, you'd have to be really silly to do something like:
del(M) so I'd rule that out. Then again... |
Actually, you know what? Ignore everything I said in this thread, 'cause I had a major eff-up in my thought process when I read that runtime. -_-
|