mIRC Home    About    Download    Register    News    Help

Print Thread
$width() fontbold parameter #264803 13/01/19 06:09 AM
Joined: Jan 2004
Posts: 1,174
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,174
$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)


Re: $width() fontbold parameter [Re: maroon] #264816 14/01/19 09:19 AM
Joined: Dec 2002
Posts: 4,521
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,521
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.