SRL Archive - General

Run~Time Error : Text.Scar


Heavenguard

2009-12-27 16:07:25

Im getting this Runtime error.
[Runtime Error] : Exception: Canvas does not allow drawing in line 280 in script C:\Program Files\SCAR 3.22\includes\SRL\SRL\Core\Text.scar

I got it after the UpText Updated =…/.

{*******************************************************************************
function GetUpText: String;
By: Freddy1990
Description: Returns text in upperleft corner.
*******************************************************************************}

function GetUpText: string;
begin
{$IFDEF SCAR322_UP}
Result := rs_GetUpText;
{$ELSE}
Result := rs_GetUpTextAt(8, 8, 25);
{$ENDIF}
end;

Line 280 is
Result := rs_GetUpText;

Also, is the Uptext fully functional? It works like 20% of the time with WaitUpText('ocks', 600+Random(200));