Getting an error when using FindText from text.scar. Which is this if you don't feel like opening it up
Line 305 is where is says the error is soCode:function FindText(var cx, cy: Integer; txt: string; font, xs, ys, xe, ye: Integer): Boolean; //by Stupid3ooo var S: Integer; begin S := CreateBitmapMaskFromText(txt, font); if (xs < 0) then xs := 0; if (ys < 0) then ys := 0; Result := FindBitmapMaskTolerance(S, cx, cy, xs, ys, xe, ye, 30, 30); FreeBitmap(S); end;
That's the line and the error isCode:Result := FindBitmapMaskTolerance(S, cx, cy, xs, ys, xe, ye, 30, 30);
"[Runtime Error] : Exception: Canvas does not allow drawing in line 305 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Text.scar"
Any help would be appreciated, thanks.





Reply With Quote






