i thought i had the code fixed but i get this when i test it:
runtime error: Cannot read null.health
proc name: Death (/mob/proc/Death)
and this is my death code:
mob
proc
Death(mob/M)
if(M.health<= 0)
world << "[M] was slain by [usr]."
del(M)
if you see anything wrong please let me know.
ID:148201
May 30 2003, 11:11 am
|
|
In response to Jinjo21
|
|
you mean the usr in the message that displays after you die? that came with the code i got it from a library
|
In response to Maxxis
|
|
Tell me which library you got it from, and then ill slap him for you.
|
In response to Jotdaniel
|
|
Jotdaniel wrote:
Tell me which library you got it from, and then ill slap him for you. Why did you instinctively think it was a he? You never know, the writer of this tutorial or whatever may be done by a she >:P --Lee |
In response to Mellifluous
|
|
Because, as far as BYOND's concerned...there's only 3 female developers that are openly showing their works...so, ya...=p
|
In response to Goku72
|
|
Goku72 wrote:
Because, as far as BYOND's concerned...there's only 3 female developers that are openly showing their works...so, ya...=p Yea, but still, how would you know? For all you know, there are more female developers openly showing their work, although you may not know about it because they don't advertise on these forums, if not at all. :P |
Never use usr in a proc. Learn it early on before it becomes a habit.