Results 1 to 6 of 6

Thread: Rawr SLJs8jgDLKJ!*.. grr.

  1. #1
    Join Date
    Mar 2007
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Rawr SLJs8jgDLKJ!*.. grr.

    Stupid SCAR jsaoja9fhalkjo4alkshjaosdj....

    Im blind at the moment ... I cant tell why SCAR wont let this compile:
    SCAR Code:
    if (FindMMColorTol(1413102, 10)) then /// This is line 420.
              begin
                   ClickMMColorTol(1413102, 10);
              end else
                  if (FindMMColorTol(126957, 10)) then /// Refer down. 424.
                  begin
                       ClickMMColorTol(126957, 10);
                  end else
                      WriteLn('Failed.');
                  end;
              end;

    Error:
    Code:
    Failed when compiling
    Line 424: [Error] (18001:20): Variable Expected in script C:\Program Files\SCAR 3.0\Scripts\myscript.scar
    Even if I put 420 to like, if (1=1) then ... it'll work. Until it gets to the next If statement, it'll give the same error... except line 424.

    Now, can anyone else tell me why this alxchg98xcjlkajmowgslkdgjasd script wont compile? Sorry... Im a bit flustered... Thanks anyone.

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    else isn't a begin by itself

    SCAR Code:
    if (FindMMColorTol(1413102, 10)) then /// This is line 420.
              begin
                   ClickMMColorTol(1413102, 10);
              end else
              begin
                  if (FindMMColorTol(126957, 10)) then /// Refer down. 424.
                  begin
                       ClickMMColorTol(126957, 10);
                  end else
                  begin
                      WriteLn('Failed.');
                  end;
              end;

  3. #3
    Join Date
    Mar 2007
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    X_X

    ...i quit.

    Thanks.

    Edit: Even with that, it didnt work.

    Line 420: [Error] (17997:20): Variable Expected in script C:\Program Files\SCAR 3.0\Scripts\artisSmelter2.scar

    Line 420 Still :
    Code:
              if (FindMMColorTol(1413102, 10)) then /// This is line 420.

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

    Default

    You forgot the x and y variables in FinMMColorTol

    I think it's like FindMMColorTol(x, y, 1413102, 10)
    Hup Holland Hup!

  5. #5
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Oops I should have done it in SCAR lol.

  6. #6
    Join Date
    Mar 2007
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    You forgot the x and y variables in FinMMColorTol

    I think it's like FindMMColorTol(x, y, 1413102, 10)
    X_X Thanks. That solved it. I didnt even think to put the variables in... Thanks again.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rawr
    By Alisko in forum Who Are You ? Who ? Who ?
    Replies: 0
    Last Post: 12-02-2006, 09:13 AM
  2. Rawr!
    By autoing in forum News and General
    Replies: 1
    Last Post: 09-16-2006, 11:16 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
  •