Daniel279
2013-03-26 16:04:45
function KillChicken: Boolean;
var
RTPA: TPointArray;
i: Integer;
ATPA: T2DPointArray;
T2DExtendedArray:
begin
SetColortolerancespeed(3);
FindColorsSpiralTolerance(MSCX, MSCY, RTPA, 5095895, MSX1, msy1, msx2, msy2, 5)
Setcolortolerancespeed(0);
RAaSTPAEx(RTPA,3,3);
if Length(RTPA) = 0 then
writeln('Didn''t find chick colors.');
SplitTPAExWrap(RTPA, 15, 15, ATPA);
if (Length(ATPA) > 0) then
SortATPAFrom(ATPA, Point(MSCX, MSCY))
else
Exit;
when trying to run this script it says "Identifier expected at line 26
Compiling failed."
line 26 is where it says 'begin' any help is greatly appreciated
sorry f i posted this in the wrong place im new to simba
var
RTPA: TPointArray;
i: Integer;
ATPA: T2DPointArray;
T2DExtendedArray:
begin
SetColortolerancespeed(3);
FindColorsSpiralTolerance(MSCX, MSCY, RTPA, 5095895, MSX1, msy1, msx2, msy2, 5)
Setcolortolerancespeed(0);
RAaSTPAEx(RTPA,3,3);
if Length(RTPA) = 0 then
writeln('Didn''t find chick colors.');
SplitTPAExWrap(RTPA, 15, 15, ATPA);
if (Length(ATPA) > 0) then
SortATPAFrom(ATPA, Point(MSCX, MSCY))
else
Exit;
when trying to run this script it says "Identifier expected at line 26
Compiling failed."
line 26 is where it says 'begin' any help is greatly appreciated
sorry f i posted this in the wrong place im new to simba