mIRC Home    About    Download    Register    News    Help

Print Thread
#4448 01/01/03 11:34 PM
Joined: Jan 2003
Posts: 12
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2003
Posts: 12
scon doesn't like $chr(124) if its apart of a msg. It does treat it as plain text.

To demonstrate, i wrong a small script..
//var %text = 1 $chr(124) 2 | scon -a msg $chan %text
This will show an error of 'Unknown command: 2'
--
//var %text = 1 $chr(124) 2,%x = 1 | while ($scon(%x)) { scon %x | msg $chan %text | inc %x }

However when i don't use -a and preform a while loop instead. No error appears and the script works. (i'm assuming -a was meant to work the same way as this while loop does and message all connected server channels)

-MerdeDeSinge

#4449 02/01/03 09:29 PM
Joined: Dec 2002
Posts: 46
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 46
try using //var %text = 1 $!chr(124) 2 | scon -a msg $chan %text

/help /scon (at the bottom):
Note: If you use a command that contains $identifiers, and you want the identifiers to be evaluated in the target connection, you must pass them as $!identifier to prevent them from being evaulated first in the current connection.


evil is in the eye of the beholder

Link Copied to Clipboard