I have the following script and I don't know why it is not working... please help me

on *:CONNECT:{
set %contime $ctime
tbar
}
alias tbar {
.timerbar 0 1 titlebar ..:: %script :: Time:[ $+ $time $+] :: Uptime:[ $+ $duration($calc($ctime - %contime)) $+ ] ::..
}

So I have the %contime variable set and I can't understand why it is not working.
When I connect the timer starts, makes the titlebar in the way I want but only once and than it disappears.

I am looking forward to have same piece of advice on my case...

10x


Regards, ThE_mASk.