ID:177903
 
I can attack just fine but if you attack really fast like if you use a macro it says this.


runtime error: Cannot read null.client
proc name: die (/mob/proc/die)
source file: Tenchi Hito.dm,93
usr: Hendrix (/mob/characters/Player)
src: Hendrix (/mob/characters/Player)
call stack:
Hendrix (/mob/characters/Player): die(null)
Hendrix (/mob/characters/Player): damage(null)
Hendrix (/mob/characters/Player): Attack(null)

And sometimes it just says this

runtime error: Cannot read null.client
proc name: die (/mob/proc/die)
source file: Tenchi Hito.dm,93

If you have any suggestions please help me out.

Hendrix<<>
IT may be because you are attacking something with no client such as a monster. Make sure you check with in your code,

if(src.client)
blah blah
else
here for monsters
Hendrix wrote:
[snip]
runtime error: Cannot read null.client
proc name: die (/mob/proc/die)
source file: Tenchi Hito.dm,93
usr: Hendrix (/mob/characters/Player)
src: Hendrix (/mob/characters/Player)
call stack:
Hendrix (/mob/characters/Player): die(null)
Hendrix (/mob/characters/Player): damage(null)
Hendrix (/mob/characters/Player): Attack(null)
[snip]

I can't say what it is for without seeing the code, but I'm guessing die() takes an argument which is a mob. The second from last line of the error says it is being called without an argument. Since this mob argument was not passed, the client of that mob can't be checked.

I'm guessing Attack() should pass the mob to damage() and damage() should pass the mob to die(). However, I didn't write the code.