I have this:
Simba Code:if FindColorsTolerance(TreeTPA, 2649183, MSX1, MSY1, MSX2, MSY2, 6) then
result := True;
If complied gives: Unknown identifier 'result'
Thank you :)
Printable View
I have this:
Simba Code:if FindColorsTolerance(TreeTPA, 2649183, MSX1, MSY1, MSX2, MSY2, 6) then
result := True;
If complied gives: Unknown identifier 'result'
Thank you :)
Is this called in a function?
You should have something like
Simba Code:function FunctionName: Boolean;
Simba Code:function Thecolor: Boolean;
var
TreeTPA: TpointArray;
begin
if FindColorsTolerance(TreeTPA, 2649183, MSX1, MSY1, MSX2, MSY2, 6) then
result := True;
end;
Edit :ninja:'d