ID:175016
 
I want to have a steal verb on my HUD but I always get a runtime error saying:

proc name: New (/obj/Steal/New)
source file: Hud.dm,32
usr: null
src: Steal (/obj/Steal)
call stack:
Steal (/obj/Steal): New(null)
YellowDragon9768 (/mob): Login()
YellowDragon9768 (/client): New()

Here is the code, I don't unerstand why this is happening.

    Steal
icon='hud.dmi'
icon_state="steal"
layer=MOB_LAYER+9999999999999999999999999999
New(client/C) screen_loc = "4,1", C.screen+=src
Click(mob/M in oview(1))
usr<<"You stole 5 dollars!"
usr.gold+=5
M.gold-=5
M<<"You have just been robed 5 dollars!"


client
New()
new/obj/Steal(src)
..()

I think you left out part of the error message. But your New() proc isn't the right syntax; you need to indent the stuff that comes after it and put those statements on separate lines. The comma you're using is bad news.

Lummox JR