Just from an away from home glance, I can determine a few quick things at least.
In TempRepeat, instead of you can do
Your compilation issue *might* be because
Simba Code:
wait(randomrange(7500, 1500));
If you look carefully, you see the second number is smaller than the first. You maybe meant "15000" instead of "1500"?
In FindManTpa you do:
Simba Code:
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.44, 0.42); //0.01 = Hue mod ... 0.60 = Sat mod
and you only reset the values to what they should be if the object is found. Instead you should move your reset to after the
Simba Code:
if FindColorsTolerance(ObjectTPA, 5916744, 8, 25, 518, 359, 2) then
begin // 5916744 = shirt color ... 2 = tolerance
.....
end;
block so it always resets the values. And as far as that goes, it appears your Writeln declaring the man wasn't found occurs even if he is found.
Just some tips from my glance that should hopefully help out.