mIRC Home    About    Download    Register    News    Help

Print Thread
/bset #43165 20/08/03 11:39 AM
Joined: Apr 2003
Posts: 18
T
Teazle Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Apr 2003
Posts: 18
if i have not understood it wrong, /bset -t &binvar 1 97
would add the value 97 to the &binvar, and not evaluate it to its ascii value.

but i have not gotten this to work:
//bset -t &binvar 1 97 | echo -a $bvar(&binvar,1,1000)
gives me "57 55" which is the ascii values of 9 and 7. is this a bug or have i just missunderstood it? confused


Teazle
#help.script - QuakeNet
Re: /bset #43166 20/08/03 11:45 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
-t makes /bset treat everything after the N as plain text. That means 97 is treated as the string "97", so &binvar contains two bytes/characters with the ascii values 57 and 55. If you want specify ascii values instead of plain text in /bset, just lose -t.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /bset #43167 20/08/03 05:23 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Yes, those are the ascii values of 9 and 7, and thats exactly what you told it to do. If I understand what you're saying,
//bset -t &binvar 1 97 | echo -a $bvar(&binvar,1,1000).text
is what you want.

Re: /bset #43168 21/08/03 03:21 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
//bset &binvar 1 97 | echo -a * $bvar(&binvar,1-).text

* a


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C