ID:262948
 
Code:
client
New()
..()
new/obj/Hud/Hud1(src)
new/obj/Hud/Hud2(src)

//hud object code//
obj/Hud

Hud1
name = "Medabots Online Version 1.5 | Hud"
icon = 'hud.dmi'
icon_state = "0,0"
New(client/C){screen_loc = "1,17";C.screen+=src}

Hud2
name = "Medabots Online Version 1.5 | Hud"
icon = 'hud.dmi'
icon_state = "1,0"
New(client/C){screen_loc = "2,17";C.screen+=src}


Problem description:There are no errors in the code when compiling it but when i run the game the hud does not show :/ can someone please help me out. Thanks

How about:

mob/Login()
src.client.screen += new/obj/HUD/HUD1
src.client.screen += new/obj/HUD/HUD2

obj/HUD
icon = 'hud.dmi'
HUD1
icon_state = "1,1"
New()
screen_loc = "1,1"

HUD2
icon_state = "2,1"
New()
screen_loc = "2,1"
In response to Crzylme
Dont work :/
> client
> New()
> ..()
> new/obj/Hud/Hud1(src)
> new/obj/Hud/Hud2(src)
>
> //hud object code//
> obj/Hud
> icon = 'hud.dmi'
name = "Medabots Online Version 1.5 | Hud"
layer = MOB_LAYER+10
> New(client/C)
C.screen+=src
Hud1
> icon_state = "0,0"
> screen_loc = "1,17"
>
> Hud2
> icon_state = "1,0"
> screen_loc = "2,17"



You forgot to set the layer.
In response to DarkCampainger
nope dont work
In response to Fire Dynasty
Did you check the icon files?
In response to DarkCampainger
Naaah, you dont say >_< joke yah i did
In response to Fire Dynasty
i never have used it like that...i do it like this
//Lets just say all icons are defined and set to MOBLAYER+1
mob
Login()
usr.client.screen += new/obj/Hud
..()