Results 1 to 9 of 9

Thread: Semicolon expected?

  1. #1
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Semicolon expected?

    SCAR Code:
    Procedure opendoor;
    Begin
    Writeln ('Opening the Lumbrige Castle door')
    //FindCompassAngle 225; Add for srl 4.0
    if (FindObj(x, y, 'Open',1680860, 5)) then
    MMouse(x, y, 0, 0);
    Wait(100 + random(50));
    Mouse(x, y, 0, 0, true);
    Writeln ('Succesfully Opened Lumbrige Castle door')
    end else
    Begin
    Writeln ('Lumbrige Castle door already opened')
    end;
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  2. #2
    Join Date
    Jan 2007
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure opendoor;
    Begin
    Writeln ('Opening the Lumbrige Castle door')
    //FindCompassAngle 225; Add for srl 4.0
    if (FindObj(x, y, 'Open',1680860, 5)) then
    MMouse(x, y, 0, 0);
    Wait(100 + random(50));
    Mouse(x, y, 0, 0, true);
    Writeln ('Succesfully Opened Lumbrige Castle door');
    end else
    Begin
    Writeln ('Lumbrige Castle door already opened');
    end;
    If you ain't Dutch, you ain't much!

  3. #3
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I dont get it??? Are you just spaming, or trying to tell me something?
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    You both forgot a begin and an end?
    Hup Holland Hup!

  5. #5
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where?
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  6. #6
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    SCAR Code:
    Procedure opendoor;
    Begin
      Writeln ('Opening the Lumbrige Castle door')
      //FindCompassAngle 225; Add for srl 4.0
      if (FindObj(x, y, 'Open',1680860, 5)) then
      begin
        MMouse(x, y, 0, 0);
        Wait(100 + random(50));
        Mouse(x, y, 0, 0, true);
        Writeln ('Succesfully Opened Lumbrige Castle door');
      end else
      Begin
        Writeln ('Lumbrige Castle door already opened');
      end
    end;
    Hup Holland Hup!

  7. #7
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    He's saying at the end of the Writeln lines, you need a semicolon.

  8. #8
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OH Im stupid. sorry pointer i missunderstood you
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  9. #9
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think you'll find you're missing a begin right after the 'if' statement, and an 'end;' right before the last one.

    Edit: look at nielsie's code

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Semicolon expected?
    By TViYH in forum OSR Help
    Replies: 16
    Last Post: 08-31-2008, 05:22 PM
  2. Semicolon expected in script (?)
    By Fabis in forum OSR Help
    Replies: 2
    Last Post: 03-27-2008, 05:14 PM
  3. Semicolon Expected
    By Lee Lok Hin in forum OSR Help
    Replies: 4
    Last Post: 03-06-2008, 12:43 AM

Posting Permissions

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