Results 1 to 6 of 6

Thread: error

  1. #1
    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default error

    i keep gettan an error that says Close round expected in script

    hes my procedure

    SCAR Code:
    Procedure Talktoguide;
    begin
      G:=0;
      repeat
      G:=G+1;
      wait(2000+random(300));
      if(FindObj(x,y, 'une' ,1122200 ,10)) then
      begin
        didFind:=true;
        Mouse(x,y,0,0,False);
        wait(200);
        ChooseOption(x,y,'talk');
        WriteLn('talking to runescape guide');
        ClickToContinue;
        wait(500);
        end;
      until(G:=30) or (didFind:=True));
    end;

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    until(G:=30) or (didFind:=True)); should be until(G:=30) or (didFind:=True);
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Talktoguide;
    begin
      repeat
        wait(2000+random(300));
        if(FindObj(x,y, 'une' ,1122200 ,10)) then
        begin
          Mouse(x,y,0,0,False);
          wait(200);
          ChooseOption(x,y,'talk');
          WriteLn('talking to runescape guide');
          ClickToContinue;
          wait(500);
        end;
      until (FindObj(x,y, 'une' ,1122200 ,10));
    end.

    You can't have Until (G:=50); I only use G:=G+1; for tol

    Hope this helps

    ~Stupedspam

    @dan cardin- That will still have a close round error...

  4. #4
    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by stupedspam View Post
    SCAR Code:
    procedure Talktoguide;
    begin
      repeat
        wait(2000+random(300));
        if(FindObj(x,y, 'une' ,1122200 ,10)) then
        begin
          Mouse(x,y,0,0,False);
          wait(200);
          ChooseOption(x,y,'talk');
          WriteLn('talking to runescape guide');
          ClickToContinue;
          wait(500);
        end;
      until (FindObj(x,y, 'une' ,1122200 ,10));
    end.

    You can't have Until (G:=50); I only use G:=G+1; for tol

    Hope this helps

    ~Stupedspam

    @dan cardin- That will still have a close round error...


    why cant i have g=50 its a failsafe..

  5. #5
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Talktoguide;
    begin
      G:=0;
      repeat
        G:=G+1;
        wait(2000+random(300));
        if(FindObj(x,y, 'une' ,1122200 ,10)) then
        begin
          didFind:=true;
          Mouse(x,y,0,0,False);
          wait(200);
          ChooseOption(x,y,'talk');
          WriteLn('talking to runescape guide');
          ClickToContinue;
          wait(500);
        end;
      until(G=30) or (didFind=True)
    end;

    That's how you'd do it with G = 30. The problem was you had G := 30 which means set G to 30, not check if G is 30.

  6. #6
    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10: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
  •