Results 1 to 2 of 2

Thread: Syntax Error

  1. #1
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Syntax Error

    ***ANSWERED***

    Hey guys i got a
    Line 34: [Error] (17695:1): Syntax error in script
    Whats wrong? And how is this looking? going about it the right way?

    Procedure FindCow;
    var
    x, y : Integer;
    Begin
    if (FindColorTolerance(x, y, 1389385,MSX1, MSY1, MSX2, MSY2, Tolerance)) and
    if (FindColorTolerance(x, y, 7503229,MSX1, MSY1, MSX2, MSY2, Tolerance)) and
    if (FindColorTolerance(x, y, 728362,MSX1, MSY1, MSX2, MSY2, Tolerance)) then
    Begin
    MMouse(x, y, 3, 3);
    End;
    End;

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

    Default

    delete the second two 'if', and it should work.

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. Syntax error(need help.)
    By weequ in forum OSR Help
    Replies: 9
    Last Post: 04-04-2008, 04:54 AM
  3. Replies: 5
    Last Post: 02-26-2008, 04:14 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
  •