mob/proc/updatetime()
var/t=time2text(world.realtime,"hh:mm:ss")
winset(src,"Browser.time",{"text="[t]""})
spawn(10) updatetime()
Problem description:I am trying to output the time in a label and update it every second but this doesn't work. Can anyone correct me please?
Also, is there a way to change it from a 24hour view to the 12hour view (as in p.m. and a.m.)?
for() and while(1) are better for doing infinites loops intead of re-reading the proc, by the way.