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: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
You can create your own identifiers for them or create your own variables.

#25059 19/05/03 08:05 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
alias [ { return $chr(91) }
alias ] { return $chr(93) }
alias # { return $chr(35) }
alias | { return $chr(124) }

#25060 19/05/03 09:31 PM
Joined: Dec 2002
Posts: 39
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 39
or you could just use 'control + o' character before special ones: //echo -a [ $ip ]

#25061 19/05/03 09:35 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
//echo [[ wazzup ]] wink


Code:
//if ( khaled isgod ) echo yes | else echo no
#25062 19/05/03 11:09 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
kick $1 $$2 $3 [[ Victim $(#,0) $+ %kicks ]]
kick $1 $$2 $3 $+([ Victim $(#,0),%kicks ])


Link Copied to Clipboard