ID:163171
 
mob
proc
updateHealth()
var/percent=round(src.hp/src.maxhp*100,10)
if(percent>100) percent=100
if(percent<0) percent=0
for(var/obj/hudMeters/o in src.client.screen)
o.icon_state=num2text(percent)
spawn(10)
usr.updateHealth()
proc
hpbar()
new/obj/hudMeters/health_01(usr.client)
new/obj/hudMeters/health_02(usr.client)
usr.updateHealth()

it tells me cannot read from null source..........
WHY!
Because you're abusing usr in proc/hpbar(). You should pass an argument instead. You're also abusing usr at the bottom of mob/proc/updateHealth()
In response to Jp
pass an argument?
In response to Hellonagol