ID:149034
 
This is the code that has the problems:
mob/proc/DeathCheck()
if(!key)
del src
else
if(src.HP<=0)
var/X=rand(1,world.maxx)
var/Y=rand(1,world.maxy)
var/Z=rand(1,world.maxz)
src.Move(locate(X,Y,Z))
src << "You died, you noob!"
world << "[src] died due to being killed!"
src.HP = 100
Ammunition = rand(1,300)
Grenades = rand(1,3)
LAWs = rand(1,2)
usr.kills += 1
usr.score += 500

Drafonis wrote:
This is the code that has the problems:
mob/proc/DeathCheck()
> if(!key)
> del src
> else
> if(src.HP<=0)
> var/X=rand(1,world.maxx)
> var/Y=rand(1,world.maxy)
> var/Z=rand(1,world.maxz)
> src.Move(locate(X,Y,Z))
> src << "You died, you noob!"
> world << "[src] died due to being killed!"
> src.HP = 100
> Ammunition = rand(1,300)
> Grenades = rand(1,3)
> LAWs = rand(1,2)
> usr.kills += 1
> usr.score += 500


What are the error(s)?
In response to Malver
I fixed the error.