Results 1 to 7 of 7

Thread: BankScreen Problem?

  1. #1
    Join Date
    Sep 2008
    Location
    Chicago
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default BankScreen Problem?

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

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

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

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

  2. #2
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    why not just:

    SCAR Code:
    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;

    SCAR Code:
    While (not BankScreen) do
        Writeln('No Bank Screen');
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Sep 2008
    Location
    Chicago
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    why not just:

    SCAR Code:
    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
    SCAR Code:
    While not BankScreen do
      Wait(100)

    Quote Originally Posted by benjaa View Post
    Edit:[/B] This may solve it;

    SCAR Code:
    While (not BankScreen) do
        Writeln('No Bank Screen');
    I tried that it didn't work.

  4. #4
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh ok, sorry, i have no idea then
    Project: Welcome To Rainbow

  5. #5
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    why not just:

    SCAR Code:
    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;

    SCAR Code:
    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

  6. #6
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    try this

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

    Sometimes the While Do loops just don't work.

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  7. #7
    Join Date
    Sep 2008
    Location
    Chicago
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by HyperSecret View Post
    try this

    SCAR Code:
    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. I was gonna say that OpenBankReflection needs to be fixed because it used while but someone already fixed it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GE BankScreen is not working
    By RuneItBack2Front in forum OSR Help
    Replies: 3
    Last Post: 11-28-2008, 05:57 PM
  2. BankScreen
    By Mr. Freeweed in forum RS has been updated.
    Replies: 2
    Last Post: 05-20-2007, 08:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •