Results 1 to 3 of 3

Thread: Semicolon expected in script (?)

  1. #1
    Join Date
    Mar 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Semicolon expected in script (?)

    SCAR Code:
    procedure ifdone;
    begin
    if (alchtimes=alchcount) then Mouse(752,12,0,0,true); Mouse(639,375,0,0,true); report;
    end else
    Wait(5);
    end;

    Whats wrong with this procedure?

  2. #2
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    SCAR Code:
    procedure ifdone;
    begin
    if (alchtimes>=alchcount) then // >= for safety
    begin //this
      Mouse(752,12,0,0,true);
      Mouse(639,375,0,0,true);
      report;
    end else
    Wait(5);
    end;

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  3. #3
    Join Date
    Mar 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh...kk thank you

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
    By Lee Lok Hin in forum OSR Help
    Replies: 4
    Last Post: 03-06-2008, 12:43 AM
  3. Semicolon expected?
    By Johura in forum OSR Help
    Replies: 8
    Last Post: 04-17-2007, 06:02 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
  •