mIRC Home    About    Download    Register    News    Help

Print Thread
#264803 13/01/19 06:09 AM
Joined: Jan 2004
Posts: 2,127
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
$width(text,font,size,B,C)

If someone uses a non-numeric B parameter, it's causing both B and C parameter to be treated as if zero. Possibly related to

34.Extended $width() to support $true/$false parameters.

Code:
//var %a G $+ $chr(22) | echo -a $width(%a,Consolas,16,B,0) same as $width(%a,Consolas,16,B,1)


Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your bug report. Yes, this is related to $true/$false, which can be either $true/$false or 0/1. Since this identifier supports a variable number of parameters of different types (it has been extended several times, so needs to be backwards compatible), the scripter will need specify the correct values.


Link Copied to Clipboard