Hi,
Whatever I try, I can't use the 'break;' statement.
Code:
Error: Cannot break out of this statement at line 137
Compiling failed.
I have a global variable (isQuickKeySet), and if it is set I want it to break out of the loop.
Simba Code:
if not (isQuickKeySet) then
break;
My full code is:
Simba Code:
if bankScreen.open(BANK_CHEST_LUMBRIDGE) then
if bankScreen.isOpen(1000) then
bankScreen.clickButton(BANK_BUTTON_PRESET_1);
tabBackpack.waitWhileLocked(1000);
if not (tabBackpack.isFull) then
TerminateScript();
if not (isQuickKeySet) then
begin
tabBackPack.mouseSlot(1, MOUSE_MOVE);
dragMouse(actionBar.getSlotBox(1).getRandomPoint());
isQuickKeySet := true;
end;
typeSend('1', false);
if productionScreen.isOpen(1000) then
productionScreen.clickStart(true);
if not (tabBackpack.waitSlotPixelChange(4, 3000)) then
exit;
repeat
antiBan(1500);
Wait(750);
until tabBackpack.waitSlotPixelChange(28, 18000);
wait(gaussRangeInt(500, 750));
But it always fails to typesend 1, somehow it isn't called after this lines. Is that because it doesn't break properly? Because it just waits for a bit and than starts banking again.
Thanks in advance!