Results 1 to 11 of 11

Thread: annoying error..

  1. #1
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    annoying error..

    hmmph. keep getting this error for the last line of this script...please help im repping...

    here is the error:
    Semicolon (';') expected in script C:\Documents and Settings\Owner\My Documents\Grade 7\SCAR 3.15\Scripts\oredout(Smart)bank.scar


    here is the part of the script where the error occurs..

    SCAR Code:
    begin
      SetupSmart;
      Signature;
      SetupSRL;
      DeclarePlayers;
      if LoggedIn then Logout;
      LoginPlayer;
      CheckLevel;
      Writeln('Current Mining Level Is ' +IntToStr(Level));
      if Bank = 'False' then
      begin
        repeat
          ToDrop;
          if not Loggedin then NextPlayer(False);
        until False;
      end;
      if Bank = 'True' then
      begin
        repeat
          Tobank;
          if not Loggedin then NextPlayer(False);
        until False;
      end;
    end;
    end.

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    uhm... maybe you put two ends at the end ?


  3. #3
    Join Date
    Sep 2007
    Posts
    501
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    post the whole script

    and what cazax said

  4. #4
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    hehe wel is it rely neccessary to post whole script??
    because thats my main loop which i think shud be enuf and ill check if there is two ends..
    lol i just dont want to post script because LOTS of TIME and EFFORt put into it..and since leechers can view this..id rather not post here..

    EDIT: and about the two ends? there aren't two end.
    thats my whole main loop so watever the mistake is..it shud be in there..

  5. #5
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When you take out everything in the loop it looks like this:
    SCAR Code:
    begin
      begin
        repeat
        until False;
      end;
      begin
        repeat
        until False;
      end;
    end;
    end.

    That gives a error to give a period not a semicolon.

    So change your loop to this:
    SCAR Code:
    begin
      Signature;
      SetupSRL;
      DeclarePlayers;
      if LoggedIn then Logout;
      LoginPlayer;
      CheckLevel;
      Writeln('Current Mining Level Is ' +IntToStr(Level));
      if Bank = 'False' then
      begin
        repeat
          ToDrop;
          if not Loggedin then NextPlayer(False);
        until False;
      end;
      if Bank = 'True' then
      begin
        repeat
          Tobank;
          if not Loggedin then NextPlayer(False);
        until False;
      end;
    end.

  6. #6
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    hmmm wel then lol dont i have to add those things bak to my mainloop for it to work?

  7. #7
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I edited it so re look at it again.

  8. #8
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    thx but u it said identifier expected because u added the extra close round so i changed that....and then the same problem occurs

  9. #9
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well then post your whole script because the loop doesn't give me errors when I compile it(I added procedures with the same name).

  10. #10
    Join Date
    Nov 2006
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have an extra end; at the bottom.

  11. #11
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Thanks guys yep I found the error

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sum annoying error plz help..
    By faster789 in forum OSR Help
    Replies: 6
    Last Post: 03-29-2008, 04:11 PM
  2. Annoying error
    By Cazax in forum OSR Help
    Replies: 3
    Last Post: 03-21-2008, 09:11 PM
  3. Annoying error
    By Rora in forum OSR Help
    Replies: 1
    Last Post: 12-08-2007, 08:08 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
  •