Oh I see
that is a type of variable, you never declared a variable there
Simba Code:
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('Did not find chicken colors.');
SplitTPAExWrap(RTPA, 15, 15, ATPA);
if (Length(ATPA) > 0) then
SortATPAFrom(ATPA, Point(MSCX, MSCY))
else
Exit;
End;
For every begin you need an end;