Xanith
2010-12-20 00:49:01
I just started scripting again and I can't figure this error out.
Here is the Procedure.
[Error] (47:3): Semicolon (';') expected at line 46Here is the Procedure.
procedure chopTrees; //Chops Trees until invintory is full
var
x, y, i, clickColor : integer;
treesTPA : TpointArray;
treeATPA : Array of TpointArray;
begin
FindColorsSpiralTolerance(MSCX, MSCY, treesTPA, 1588531, MSX1, MSY1, MSX2, MSY2, 9)
treeATPA := SplitTPA(treesTPA, 10);
repeat
for i := 0 to high(treeATPA) do
if MiddleTPAEx(treeATPA[i], x, y) then
begin
MMouse(x, y, 5, 5);
Wait(300);
if IsUpText('ree') then
begin
ClickMouse(x, y, 1);
clickColor := GetColor(x, y);
treeWait(x, y, clickColor);
//DebugATPA(treeATPA, 'c');
break;
end
end
until(InvFull);//this is the line SIMBA Highlights.
end; // Line 47