Im not sure what you are trying to do, but maybe something like this:
SCAR Code:
if (FindMainColor(x, y, ...., 19, True)) or
(FindMainColor(x, y, ...., 19, True)) then
begin
Mouse(x, y, 3, 3, False);
ClickOption('...', 1);
Wait(5000 + Random(1000));
repeat
if (FindMainColor(Fx, Fy, ..., 19, True)) or
(FindMainColor(Fx, Fy, ...., 19, True)) then
begin
MMouse(Fx, Fy, 1, 1); --- or here is the error
FishAntiBans;
MMouse(Fx, Fx, 1, 1); --- or here is the error
if (not (IsUpText('...'))) then
blabla
end;
until(..)