So if i remove while(src) i should be set?
:EDIT: mob/Player/Stat() I want it to remove every single layer that is attatched to HealthOverlay + MagicOverlay when its called how can i accomplish this because the way i have it now only removes two. |
I get this runtime error runtime error: undefined variable /mob/Player/var/screen proc name: New (/obj/healthbar/New) source file: Meter.dm,27 usr: XX (/mob/Choose) src: the healthbar (/obj/healthbar) call stack: the healthbar (/obj/healthbar): New(Player (/mob/Player)) Player (/mob/Player): Bars() XX (/mob/Choose): NewGame() XX (/mob/Choose): Login() runtime error: Cannot read null.screen proc name: Bars (/mob/proc/Bars) source file: Meter.dm,15 usr: XX (/mob/Choose) src: Player (/mob/Player) call stack: Player (/mob/Player): Bars() XX (/mob/Choose): NewGame() XX (/mob/Choose): Login() this is line 15 for(var/obj/healthbar/H in src.client.screen) and this is line 27 c.screen+=src how do i fix this runtime? |
Could someone please assist me? I hate bumping/begging but i cannot go forth with my project until this bug is rendered fixed.
|
this is line 15 for(var/obj/healthbar/H in src.client.screen) and this is line 27 c.screen+=src </dm> how do i fix this runtime? lemme take a stab at it. the first one is because there is no client? maybe you should add a line before doing the loop if(!src.client) return the second one, u didnt show us where u are defining c? and im guessing you have c as a /mob/Player define c first var/client/c just a try ;) might be wrong. |
however thats keeping my stat panels from showing up i think its the while(src) is there another way or a step to fix this problem?