Results 1 to 4 of 4

Thread: [Error] Help?

  1. #1
    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Error] Help?

    Ok, this script would be almost my first attempt at a script, i was going fine until now. I seem to be getting this error and I don't know what is wrong.

    [Error] (14458:4): Identifier expected

    this is the procedure I think that has the problem because, before i added it i had no problem.

    SCAR Code:
    Procedure WalkIn;
    begin
    if(FindColor(A,B,MinimapFlaxColor,559,18,759,188)) then
    begin
    MoveMouse(A,B);
    wait(800);
    ClickMouse(A,B,true);
    wait(800);
    Flag;
    wait(800);
    end;

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You have 2 begins and 1 end when instead you should have the same number of each. Add an extra end; at the end.

    Also, ClickMouse is detectable, use SRL's version : Mouse
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, thankyou i'll try and fix it up

  4. #4
    Join Date
    Mar 2007
    Location
    Maryland, USA
    Posts
    184
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah instead of this

    SCAR Code:
    Procedure WalkIn;
    begin
    if(FindColor(A,B,MinimapFlaxColor,559,18,759,188)) then
    begin
    MoveMouse(A,B);
    wait(800);
    ClickMouse(A,B,true);
    wait(800);
    Flag;
    wait(800);
    end;

    put this

    SCAR Code:
    Procedure WalkIn;
    {.include SRL\SRL.scar}
    begin
     if(FindColor(A,B,MinimapFlaxColor,559,18,759,188)) then
    begin
     Mouse(A,B,true)
      wait(800+random(500));
       Flag;
      wait(800+random(500));
     end;
    end;


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. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10:43 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
  •