SRL Archive - SRL Bugs

BankScreen Problem?


Heysus

2008-12-08 19:56:03

I'm not sure if this is a problem or not but…

for some reason this doesn't work
  While not BankScreen do
Writeln('No Bank Screen');

but this does :confused:
  While BankScreen = false do
Writeln('No Bank Screen');

I did the same thing with SmeltingScreen but that worked fine.

benjaa

2008-12-08 20:07:50

why not just:

if(not Bankscreen)then Writeln('No Bank Screen');

i've never really used while that much, but won't it write that line numerous times?

Edit:
This may solve it;

While (not BankScreen) do
Writeln('No Bank Screen');

Heysus

2008-12-08 20:25:06

From: benjaa
why not just:

if(not Bankscreen)then Writeln('No Bank Screen');

i've never really used while that much, but won't it write that line numerous times?


That was just an example. It probrably should have been something like
While not BankScreen do
Wait(100)

From: benjaa

Edit: This may solve it;

While (not BankScreen) do
Writeln('No Bank Screen');


I tried that it didn't work.

benjaa

2008-12-08 20:34:35

oh ok, sorry, i have no idea then

NiCbaZ

2008-12-08 21:03:15

From: benjaa
why not just:

if(not Bankscreen)then Writeln('No Bank Screen');

i've never really used while that much, but won't it write that line numerous times?

Edit:
This may solve it;

While (not BankScreen) do
Writeln('No Bank Screen');


Because a While is a Loop, if iy youed an " if" it would writeln it up and continue the script, with the while it wait until the bank screen.

I have no idea's why it doesnt work, try this

While not(bankscreen) do

HyperSecret

2008-12-10 13:08:21

try this

MarkTime(BankTime);
repeat
Wait(10);
if (BankTime > 10000) then Exit; //or break;
until (BankScreen);

Sometimes the While Do loops just don't work.

Heysus

2008-12-12 05:37:54

From: HyperSecret
try this

MarkTime(BankTime);
repeat
Wait(10);
if (BankTime > 10000) then Exit; //or break;
until (BankScreen);

Sometimes the While Do loops just don't work.


I already knew I could do that but I was just wondering why while doesn't work. I guess it just doesn't. :confused: I was gonna say that OpenBankReflection needs to be fixed because it used while but someone already fixed it.