mIRC Home    About    Download    Register    News    Help

Print Thread
#98542 24/09/04 01:39 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
if i want to use: $time( HH:nn) then add a $chr(3) $+ 4 $+ $time( HH:nn) infront of it i would like to see the time as red, but it takes the first number in time and makes it the color instead, that means the time looks wrong, the first didgit missing and the color went from red to light green.. how do i edit that in a nice way to make it show what it should show? :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98543 24/09/04 01:54 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$chr(3) $+ 04 $+ $time(HH:nn)

#98544 24/09/04 01:57 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
thnx blush


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98545 24/09/04 01:57 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
In this case you should change 4 to 04, if you keep it in 2 digit format it doesn't consider the proceeding text to be a part of the color definition. If your number is variable then you can make sure it is in 2 digit format using $base(N,10,10,2) to pad it with a zero if necessary. If you are using $color to return a color number then you can take a shortcut, $color().dd returns it in double digit format


Link Copied to Clipboard