I'm getting a error:
Here is what I've got, What I'm trying to do is run OpenBankQuiet and if that fails I want it to run OpenBankFast. I also have the PIN thrown in there too. I might be way off base but I think what I have is close.Line 99: [Error] (12366:20): Not in a loop in script C:\Documents and Settings\...\My SRL Fletcher1.scar
SCAR Code:Procedure Dbank;
begin
if(not(LoggedIn))then Exit;
if(not(BankScreen))then
begin
OpenBankQuiet(Loc);
Wait(2000 + Random(2000));
if(BankScreen)then break;
if(PinScreen)then (InPin(PinNumber));
if(not(BankScreen))or(not(PinScreen))then
begin
OpenBankFast(Loc);
Wait(2000 + Random(2000));
if(BankScreen)then break;
if(PinScreen)then (InPin(PinNumber));
if(not(BankScreen))or(not(PinScreen))then
Writeln('Failed to open bank. Logging Out.');
wait(until not(Loggedin));
end;
Line 99 is the first line that says " if(BankScreen)then break;"


Reply With Quote









Same repeat example, too...

