mIRC Home    About    Download    Register    News    Help

Print Thread
#49065 12/09/03 11:09 PM
Joined: Sep 2003
Posts: 3
A
amfa Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Sep 2003
Posts: 3
i i think there is a bug within the online timer variable, because
i have an online time about 14.000(!) hours but $online has only about 3500 Seconds(?) so if u use $duration($online) it sends back a very small time not the real one.
i dont really know but i think it worked up to about 12.000 Hrs.

greetings
amfa

PS:
my english is not very good so forgive my misstakes smile

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
$online == $uptime(server)

and this sucks...


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Sep 2003
Posts: 3
A
amfa Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Sep 2003
Posts: 3
i dont really know what you mean because at my mirc the $uptime(Server) is higher than $online so they are not equal.
anyone an idea for the $online problem smile

greetz
amfa

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try this...
Code:
alias tonline {
  saveini
  tokenize 44 $readini($mircini,options,n1)
  return $duration($calc((3600 * $5) + (60 * $6) + $7))
}

Joined: Sep 2003
Posts: 3
A
amfa Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Sep 2003
Posts: 3
thanks this works smile
well great idea to read out the online time out of the mirc.ini.

i just changed the return to /me is online for .....

but the most important is that it works smile

greetz amfa


Link Copied to Clipboard