ID:174503
 
Delets the player when its not soposed to. heres the code. Any ideas?:

mob
proc
DEATH(mob/M)
if(src.type == /mob/PC)
MOBSDeath()
else
if(src.vit <= 0)
usr.exp += src.exp
range() << "[src] >>wass slain by [usr]."
usr.gold += src.gold
usr.exp += src.exp
sleep(1)
Del(M)
..()

MOBSDeath(mob/PC)
if(src.vit <= 0)
world<< "[src] died."
src.loc = locate(7,45,1)
src.vit = src.vit_m
else
return

Any ides why? If you want to tweek it, thanks
Del(src)

That should fix it, change Del(M) to Del(src). If that doesnt work try del(src). I am not certain it will fix it but I think it will.
The Conjuror

By the way, this belongs under Code Problems.
In response to The Conjuror
nope no dice.
You're using usr where you should be using M. Pass M to the proc as the killer, and don't put usr there.

del(src) is correct, not Del(M), and note that del() needs to be lowercase. Also, there's no point using ..() there, so you should ax that.

Lummox JR