I get an out of range error and I am unable to come up with any idea why its happening, can someone point out what i've done wrong here.
P.S. All of the functions/procedure work perfectly its only the repeat loop thats giving me the problems for some strange reason)
Simba Code:repeat
while (GetAnimation = -1) and (not R_InvFull) do
begin
StartFishing;
CheckRandomArea(3101, 3436, 3111, 3422);
wait(2000);
while (a < 5) and (CharacterMoving) do
begin
wait(1000);
CheckRandomArea(3101, 3436, 3111, 3422);
end;
a := 0;
while (not R_InvFull) and (GetAnimation = 623) do
begin
wait(200);
CheckRandomArea(3101, 3436, 3111, 3422);
end;
end;
fishes[0] := fishes[0] + R_CountItemID(331); //salmon
fishes[1] := fishes[1] + R_CountItemID(335); //trout
R_DropAllItemsIDEx([335, 331]);
Inc(loads);
writeln('Running for: ' + TimeRunning);
writeln('Loads done: ' + IntToStr(loads));
writeln('Fishing exp: ' + IntToStr(70 * fishes[0] + 50 * fishes[1]));
until(loads = Players[0].Integers[0]); //<================ Error here!!!!!!!
EDIT: SOLVED





Reply With Quote


