mIRC Home    About    Download    Register    News    Help

Print Thread
#55825 18/10/03 04:11 PM
Joined: Mar 2003
Posts: 13
D
donnah Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2003
Posts: 13
I have a clock that worked in mirc before version 6. I need to know what to change the time to...it used to be $rtime. Could someone please help me? Thanks in advance

#55826 18/10/03 04:15 PM
Joined: Oct 2003
Posts: 50
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2003
Posts: 50
you can get the time with $time...

#55827 18/10/03 04:26 PM
Joined: Mar 2003
Posts: 13
D
donnah Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2003
Posts: 13
the $time doesn't seem to work for me...but thanks anyway

#55828 18/10/03 05:04 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
if u pasted the remote code here that does that maybe someone could help u out .....


D3m0nnet.com
#55829 18/10/03 06:06 PM
Joined: Mar 2003
Posts: 13
D
donnah Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2003
Posts: 13
This is the code for the clock I am enquiring about
/$rtime {
set %realtime $rtime
set %hour $token(1,58,%realtime)
set %type AM
if (%hour > 12) { /set %hour %hour - 12 | /set %type PM }
if (%hour = 12) /set %type PM
if (%hour = 0) /set %hour 12
set %min $token(2,58,%realtime)
set %realtime %hour $+ : $+ %min %type
if (%online = on) /set %online %realtime
unset %hour | /unset %min | /unset %type | /return %realtime

#55830 18/10/03 06:29 PM
Joined: Mar 2003
Posts: 13
D
donnah Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Mar 2003
Posts: 13
sorry to bother5 everyone...but I got it fixed...thanks

#55831 18/10/03 06:31 PM
Joined: Oct 2003
Posts: 50
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2003
Posts: 50
I don't know what your code should return, since it doesn't work on mIRC 6.x, but this is the new code, and it returns 08:30 PM.

Code:
alias rtime {
  VAR %realtime = $time(hh) $+ : $+ $time(nn) $time(TT)
  IF (%online == on) { SET %online %realtime }
  RETURN %realtime
}


dammit, too late frown oh well smile

#55832 18/10/03 06:41 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
what's the point of this all?

$time(h:nn:ss TT)


Go ahead, jump. 100,000 lemmings can't be wrong.
#55833 18/10/03 06:45 PM
Joined: Oct 2003
Posts: 50
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2003
Posts: 50
I copied his code and changed that, without thinking that I could just use that. Sry :tongue:


Link Copied to Clipboard