Results 1 to 6 of 6

Thread: Nooby error.. invalid permiterter

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

    Default Nooby error.. invalid permiterter

    I have never used direct coord clicking before..
    Line 17: [Error] (14466:19): Invalid number of parameters in script

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
        repeat
          if IsUpText('teal') then
          begin
            GetMousePos(x,y);
            Mouse(x,y,2,2,true);
            DropAll;
            MMouse(321,129); //Coords of the tea stall I am stealing from
          end;
          wait(50);
        until(False)
    end.

    This is just for partial AFK.. so I can do other things while I get some nooby theifing XP..
    My error is very nooby.. please don't flame me..


    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!

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    MMouse(321,129,0,0);
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You needed a ranx and a rany in MMouse
    Code:
    program New;
    {.include SRL/SRL.scar}
    
    begin
      SetupSRL;
        repeat
          if IsUpText('teal') then
          begin
            GetMousePos(x,y);
            Mouse(x,y,2,2,true);
            DropAll;
            MMouse(321,129,2,2); //Coords of the tea stall I am stealing from
          end;
          wait(50);
        until(False)
    end.
    Dam, Cardin beat me to it.

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to fill in a random x and a random y even if you are just clicking on coordinates

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

    Default

    Ah.. knew it was something like that.. thanks!


    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!

  6. #6
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you get that error again just go Tools->Use Code Hints. When you put your courser behind (| a Parameter box will pop up if there is a function/procedure made

    ~Stupedspam

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error: Invalid jump in script.
    By Pancakes in forum OSR Help
    Replies: 2
    Last Post: 08-29-2007, 01:26 PM
  2. Error: Invalid jump in script?
    By Pancakes in forum News and General
    Replies: 14
    Last Post: 07-29-2007, 01:45 PM
  3. Invalid Number of Parameters Error
    By jmoney343 in forum OSR Help
    Replies: 7
    Last Post: 05-07-2007, 01:22 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
  •