mIRC Home    About    Download    Register    News    Help

Print Thread
#25057 19/05/03 08:00 PM
Joined: May 2003
Posts: 161
A
Vogon poet
OP Offline
Vogon poet
A
Joined: May 2003
Posts: 161
I often need to use the [ | ] # characters in text, like this
Code:
kick $1 $$2 $3 [ Victim # $+ %kicks ]


Of course this won't work right, since they're reserved characters. So you need to use $chr(), and it's annoying to have to look up the ascii code. I think there should be the additional identifiers $[, $|, $], and $# which just return the corresponding character.

#25058 19/05/03 08:05 PM
Joined: Dec 2002
Posts: 168
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 168
You can create your own identifiers for them or create your own variables.

#25059 19/05/03 08:05 PM
C
codemastr
codemastr
C
alias [ { return $chr(91) }
alias ] { return $chr(93) }
alias # { return $chr(35) }
alias | { return $chr(124) }

#25060 19/05/03 09:31 PM
L
Larra
Larra
L
or you could just use 'control + o' character before special ones: //echo -a [ $ip ]

#25061 19/05/03 09:35 PM
T
theRat
theRat
T
//echo [[ wazzup ]] wink

#25062 19/05/03 11:09 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
kick $1 $$2 $3 [[ Victim $(#,0) $+ %kicks ]]
kick $1 $$2 $3 $+([ Victim $(#,0),%kicks ])


Link Copied to Clipboard