poop123456
2014-06-03 20:16:27
Hey guys was trying to use Cathy Yews
and im getting this error "Unknown identifier 'R_ChooseOptionTile' at line 131
Compiling failed."
any idea how to fix this? thanks in advance
Edit: Error 2= Identifier expected at line 333
Compiling failed.
and im getting this error "Unknown identifier 'R_ChooseOptionTile' at line 131
Compiling failed."
function FindBirdsNest1: Boolean;
var // seed nest [(5073, 1, (2726, 3492)), ring nest (5074, 1, (2726, 3493))]
i: Integer;
itemsInArea:TGroundItemArray;
begin
itemsInArea:=R_GetGroundItemsDistance(10);
for i:=0 to high(itemsInArea) do
begin
if((itemsInArea[i].ID = 5073) or (itemsInArea[i].ID = 5074)) then
begin
birdsnest:=birdsnest+1;
Writeln('Birds Nest Found.');
[B]error->[/B] Result:=R_ChooseOptionTile('Take',itemsInArea[i].Tile);
end;
end;
end;
any idea how to fix this? thanks in advance
Edit: Error 2= Identifier expected at line 333
Compiling failed.
function R_ChooseOptionTileUptext2(Option, TileUptext: String; Tile: TPoint): Boolean; //changed a little to minimize forloop
var
i, Tilex, Tiley: Integer;
Tile2: TPoint;
begin
Result:= false;
Tile2:= R_TileToMs(Tile);
if (Tile2.x = 0) then
Exit;
Tilex:= Tile2.x;
Tiley:= Tile2.y;
for i:=1 to 3 do
begin
MouseBox(Tilex-i, Tiley-i, Tilex+i, Tiley+i, mouse_move);
wait(103 + random(88));
if IsUpTextMultiCustom([TileUptext]) then
begin
ClickMouse2(false);
wait(103 + random(288));
Result:= R_ChooseOptionMultiEx([Option], 'action', ClickLeft);
Error-> Result:=true;
end;
wait(100 + random(50));
end;
end;