mob
Login()
..()
spawn for()
sleep(10)
for(var/obj/Element_Switcher/Element_Display/E in usr.client.screen)
E.M_Type=usr.Element//dis line
mob
var/Element_Next="Fire"
verb/Add_Fire()
Elements+="Fire"
obj/Element_Switcher
icon='Element Switcher.dmi'
screen_loc="14,17"
layer=50
Element_Display
icon_state="Un_Armed"
var/M_Type="Un_Armed"
New()
spawn for()
src.icon_state="[M_Type]"
sleep(10)
Right
icon_state="right"
var/Element_Next="Fire"
screen_loc="15,17"
Click()
usr.Element_Switch_Right()
Left
icon_state="left"
screen_loc="13,17"
Click()
usr.Element_Switch_Left()
runtime error: Cannot read null.screen
proc name: Login (/mob/Login)
source file: ElementSwitcher.dm,7
usr: \[Owner] Nategrant (/mob)
src: \[Owner] Nategrant (/mob)
call stack:
\[Owner] Nategrant (/mob): Login()
Problem description:
Whenever someone logs out I get the following runtime error, any help? Thanks