ID:263955
 
Code:
  telefromvaihang
icon='turf.dmi'
Enter(A)
if(ismob(A)||usr.race=="Shinigami"||usr.race=="Vaizard")
var/mob/M = A
if(M.client)
usr.loc = locate(75,143,2)
usr.safe = 0
else
if(istype(A,/obj/)) return


Problem description:
runtime error: Cannot read 0.race
proc name: Enter (/turf/tele/telefromvaihang/Enter)
source file: tele.dm,393

My host was given this error after a little while of hosting along with

the telefromvaihang (14,1,5) (/turf/tele/telefromvaihang): Enter(the cero (/obj/cero))
the cero (/obj/cero): Move(the telefromvaihang (14,1,5) (/turf/tele/telefromvaihang), 2)
runtime error: Cannot read 0.race
proc name: Enter (/turf/tele/telefromvaihang/Enter)
source file: tele.dm,393
usr: 0
src: the telefromvaihang (14,1,5) (/turf/tele/telefromvaihang)
call stack:
Try replacing all the usr's with A or M(M after you defined it atleast). I'm pretty sure you should only use usr in verbs only. Also, the ismob(A) || if usr.race etc. thing is kind of strange. Because the usr is an object, it most likely doesn't have a race var. That could cause the problem. If the /obj/cero type doesn't have a race var, it would produce an error. Also, if you want them to all have the race var, give the atom/movable type(objects/mobs descend from them) the race var.
telefromvaihang
icon='turf.dmi'
Enter(A)
if(ismob(A))
var/mob/M = A
if(M.client)
if(M.race=="Shinigami"||M.race=="Vaizard")
M.loc = locate(75,143,2)
M.safe = 0
else return
In response to Jeff8500
Thanks both of you =], I managed to fix the runtime errors.