area/outside
var
min = 0
sec = 0
proc
Get_dntime()
return "[min]:[sec]" // #1-HERE!!!!
proc
dncycletimer()
if(60)
min++
sec = 0
else sec++
if(min == 25)
daycycle()
sleep(10)
dncycletimer()
obj
hud
dntime
name = "Day/Night Timer"
icon = 'hud.dmi' //Its icon file
icon_state = "dn"
screen_loc = "6,11" //Were it shows up on the screen
Click() //When you click it
Get_dntime() // #2-TO HERE!!!!!!!
mob/Login() //When you login
var/obj/hud/dntime/A = new() //Defines the HUD
usr.client.screen += A //Adds the HUD
..()
Problem description: I keep getting an error for #1:
error:Get_dntime:undefined proc
I have an idea of what's wrong (Fairly obvious problem :P) But I don't know where I would put #1 so that #2 reads it correctly.
Basically, here is what you did:
Talking to Area: (You): I'm giving you this proc!
Talking to Obj: (You): Use this proc! Error? Double you tee eff? <-- You didn't give the Obj the proc, so it can't use it, you gave it to the area.
You could do this a few other ways, such as:
Try that, oughta work.