spin3x
2012-05-31 15:03:12
Guys I know this is probably an easy fix, but this is what I really find hard (The ending)
Code:
Error: [Error] (40:6): Identifier expected at line 39
Compiling failed.
Code:
program Fungus;
var
time: integer;
Procedure ToBar;
var
x, y:Integer;
begin
if FindColorSpiralTolerance(x, y, 2190478, 556, 82, 723, 230, 5) then //bar
begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
Wait(2000);
begin
if FindColorSpiralTolerance(x, y, 730719, 556, 82, 723, 230, 5) then // Plant
begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
Wait(2000);
begin
if FindColorSpiralTolerance(x, y, 999777, 556, 82, 723, 230, 5) then //Swamp
begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
Wait(2000);
begin
if FindColorSpiralTolerance(x, y, 2969405, 556, 82, 723, 230, 5) then //log
begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
Wait(2000);
end;
begin
ToBar
repeat
ToBar;
until(false);
end. Error: [Error] (40:6): Identifier expected at line 39
Compiling failed.