mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Why doesn't this work and what fix does it need?

set %str $timestamp [ $+ $me $+ ] [ $+ ctime ...
echo -s %str

The desired output should be:

[08:57][myname] [236203845 ...

output is showing:

[236203845 ...

so I removed the $+ from [ $+ $me $+ ]

then I removed the [ and ] around $me and it worked, but how can I keep [ and ] around $me?


I registered; you should too.
Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Originally Posted By: RTFM
/help [ ] evaluation brackets


Code:
set %str $timestamp $+($chr(91),$me,$chr(93)) $+($chr(91),$ctime,...)
echo -a %str


$+(n1,...,nN)

Combines all of the specified parameters, the same as using $+ in between each item.


Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Thanks.


I registered; you should too.

Link Copied to Clipboard