mIRC Homepage
Posted By: maroon $width() fontbold parameter - 13/01/19 06:09 AM
$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)

Posted By: Khaled Re: $width() fontbold parameter - 14/01/19 09:19 AM
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.
© mIRC Discussion Forums