Results 1 to 9 of 9

Thread: Identifer Expected Error.

  1. #1
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Identifer Expected Error.

    SCAR Code:
    Procedure ManClick;
    begin
    repeat
       if TimeFromMark (PR) > 60*1000*10 then
       ProgressReport;
      if FindObj(x, y, 'Man', 2116697, 10) then
      begin
       Mouse(x, y, 0, 0, True);
       FFlag(2);
       Wait(1251);
       end else
       if FindObj(x, y, 'Man', 2307381, 10)then
       begin
       Mouse(x, y, 0, 0, True);
       FFlag(2);
       Wait(2217);
       end else
       if FindObj(x, y, 'Man', 1785937, 10)then
       begin
       Mouse(x, y, 0, 0, True);
       FFlag(2);
       Wait(1936);
       end else
       if FindObj(x, y, 'Man', 13995395, 10)then
       begin
       Mouse(x, y, 0, 0, True);
       FFlag(2);
       Wait(2712);
       end else
       if FindObj(x, y, 'Man', 6311245, 10)then
       begin
       Mouse(x, y, 0, 0, True);
       FFlag(2);
       Wait(2572);
       end;
       Until (FindFight);
       if(FindFight)then
       MenKilled := MenKilled + 1
    end;

    That gives:
    SCAR Code:
    Failed when compiling
    Line 121: [Error] (15639:1): Identifier expected in script

    I've ended all begins and put an until on my repeat, so I don't quite understand whats wrong?

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Do you have 'MenKilled ' as a variable at top of script?

  3. #3
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #4
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I can't see anything wrong with it.

    You might need to post the whole script.

    (Unless, if you'd rather the script be private, PM it to a good scripter and have them look at it.)

  5. #5
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    i can diffently fix if you pm me it...

  6. #6
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    well i mean men killed doesnt give anything away

  7. #7
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried sending to Sky, but it says that you have decided not to recieve PMs....

    What do you mean Jhildy?

  8. #8
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    he said unless your trying to keep it a secret but it said men killed so its kinda obvious. also you shoud consider trying to learn the right way to type out the script such as adding 2 spaces after a begin and ect read the tutorial on what you should do to become a member if u want all of the "proper scripting" methods.

  9. #9
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OK I fixed the error, forgot that a case needs an end lol.

    I've properly indented the script now, as well.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Variable Expected? Never had this error before.
    By Sandstorm in forum OSR Help
    Replies: 7
    Last Post: 11-24-2008, 01:41 AM
  2. Variable Expected error
    By Nava2 in forum OSR Help
    Replies: 3
    Last Post: 04-29-2008, 09:33 PM
  3. Identifer expected
    By supersayian2224 in forum OSR Help
    Replies: 5
    Last Post: 07-16-2007, 02:44 AM
  4. Error Colon Expected..
    By supersayian2224 in forum OSR Help
    Replies: 5
    Last Post: 07-13-2007, 09:45 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
  •