Results 1 to 2 of 2

Thread: Then Expected in script already there.

  1. #1
    Join Date
    Jul 2008
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Then Expected in script already there.

    I get the error:
    Line 79: [Error] (18441:71): 'THEN' expected in script C:\Program Files\SCAR 3.20\Scripts\*******.scar

    for this:
    SCAR Code:
    begin
      MarkTime(CuttingTime);
      MakeCompass('S')
      repeat
        if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7)) then
        begin
         Mouse(x, y, 0, 0, false);

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you have one to many ) in FindObjCustom,

    it should be

    SCAR Code:
    if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then

    “Ignorance, the root and the stem of every evil.”

Thread Information

Users Browsing this Thread

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

Posting Permissions

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