mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
I currently have:
Code:
on *:TEXT:*:#gingers-kittens {
  if ($me == no-nick) {
    .write "C:\Documents and Settings\Sean's\My Documents\Web\mbf\index.php" <br> $asctime($calc($gmt - $duration(5hrs)),HH:nn dd.mm.yy)  $nick $+ : $1- </br>
  }
}  

Which goes to a file that gets uploaded to the internet...

However, it displays it like this:
Quote:
17:35 02.04.09 Flitters: BYEEEEEEEEEE


If there a way to make it display:
Quote:
5:35pm 02.04.09 Flitters: BYEEEEEEEEEE


Thanks in advance, I had a quick search and didn't find anything.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Change
HH:nn dd.mm.yy
to
h:nntt dd.mm.yy

The different format parameters are explained in the helpfile at /help $asctime smile

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
there's also no such thing as </br>, although that's completely irrelevant to your problem.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Thank you smile

<br></br> are so that everything takes a new line on the web smile

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You should use <br />, not <br> or </br>

A<br />B<br />C will show up as:

A
B
C

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
<br/> is actually incorrect as well unless he's using XHTML 1.0 (which i doubt), otherwise <br> is fine, though technically speaking they will both work.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
It works smile

Thank you for the suggestions though smile


Link Copied to Clipboard