Results 1 to 8 of 8

Thread: Problem..

  1. #1
    Join Date
    Jan 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem..

    Okay so i am doing very basic commands and I am not getting any accomplished results... i am thinking that it is scar and not me because after trying a few simple scripts i made myself i tried an example JAD gave me and it gave me this error.

    Failed when compiling
    Line 5: [Error] (5:14): Unknown identifier 'x' in script
    this is the sample script he gave me

    Code:
    program PowerMiner;
    
    procedure MineRocks;
    begin
      if(FindColor(x,y,123591,0,0,700,608))then
        ClickMouse(x,y);
    end;
    
    begin
      repeat
        MineRocks;
        wait(1000+random(2000));
      until(False);
    end.
    I am wondering what should i do? Reinstall SRL? Scar? or what?

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Use MMouse


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    include srl

  4. #4
    Join Date
    Jan 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hy71194 View Post
    Use MMouse
    Quote Originally Posted by XcanadamanX View Post
    include srl

    okay well this doesnt help because.... i used it on scripts ive tried before and get this ....

    Successfully compiled
    [Runtime Error] : Math error in line 223 in script C:\Program Files\SCAR 3.11\includes\srl\srl\core\MouseFlag.scar

    from.... this

    Code:
    program ChickenShit;  // Caleb
    {.include SRL/SRL.scar}
    
    procedure ChickAtk;
    begin
    if(FindColor(x,y,3693687,0,0,700,700))then;
    MMouse(x,y,0,0);
    end;
    
    begin
    ChickAtk;
    end.

  5. #5
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    did you put
    SCAR Code:
    Var
      x, y: Integer;
    In there before the procedure? That would identify the "Unknown Identifier 'x'" (and y, because you will get the same error for 'y' too XD)
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  6. #6
    Join Date
    Jan 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rotflmfwao View Post
    did you put
    SCAR Code:
    Var
      x, y: Integer;
    In there before the procedure? That would identify the "Unknown Identifier 'x'" (and y, because you will get the same error for 'y' too XD)
    =/ k well that helped for JAD's but i still get this error... when using MMouse
    Successfully compiled
    [Runtime Error] : Math error in line 232 in script C:\Program Files\SCAR 3.11\includes\srl\srl\core\MouseFlag.scar
    this is the code i am using

    Code:
    program ChickenShit;  // Caleb
    {.include SRL/SRL.scar}
    
    procedure ChickAtk;
    begin
    if(FindColor(x,y,9944565,0,0,700,700))then;
    MMouse(x,y,0,0);
    end;
    
    begin
    ChickAtk;
    end.

  7. #7
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You got help for that in your other similar (same XD) thread. Its OVER!

    Plus, when you get errors, go here:
    http://www.villavu.com/forum/showthread.php?t=6413?t=7421&highlight=Fixing+Erro rs
    Not the scripting help section ok
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  8. #8
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by yamaha317 View Post
    Code:
    program ChickenShit;  // Caleb
    {.include SRL/SRL.scar}
    
    procedure ChickAtk;
    begin
    if(FindColor(x,y,9944565,0,0,700,700))then;
    MMouse(x,y,0,0);
    end;
    
    begin
    setupsrl //HERE IS YOUR PROBLEM
    ChickAtk;
    end.
    you didnt put setupsrl;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem...
    By Blumblebee in forum OSR Help
    Replies: 4
    Last Post: 12-28-2008, 07:22 AM
  2. help big problem
    By goblanca in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 10:41 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
  •