Results 1 to 8 of 8

Thread: Invalid Number of Parameters Error

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid Number of Parameters Error

    Im making this script(my first script) and I get this error
    Line 34: [Error] (34:42): Invalid number of parameters in script C:\Program Files\SCAR 3.01\Scripts\FlaxPicker.scar

    [code/]program FlaxPicker;
    Const
    NameofPlayer='';//Name of player
    Password='';//Password
    Flax= '14670464';
    Var
    a: integer;
    b: integer;

    Procedure Login;

    Begin


    Wait(500);
    MoveMouseSmooth(466,292);
    wait(500);
    ClickMouse(466,292,true);
    Wait(500)
    MoveMouseSmooth(347,262);
    SendKeysWait(NameofPlayer,500,a);
    KeyDown(13);
    KeyUp(13);
    SendKeysWait(password,500,a);
    MouseBox(233, 306, 367, 306);
    ClickMouseSpline(233, 306, 10, 5,true);

    end;

    Procedure FindFlax;

    Begin
    Repeat
    findColor(a,b,Flax,132,224,631,545);
    Until (IsTextUp(Flax)=true)
    end;

    Begin
    Login
    wait(500)
    then
    end.
    [code/]

    Line 34 is in this
    [code/]
    Procedure FindFlax;

    Begin
    Repeat
    findColor(a,b,Flax,132,224,631,545);//line 34
    Until (IsTextUp(Flax)=true)
    end;
    [code/]

  2. #2
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    program FlaxPicker;
    {.include SRL/SRL.scar}
    Const
    NameofPlayer='';//Name of player
    Password='';//Password
    Flax= 14670464;

    Var
    a, b: integer;

    Procedure Login;

    Begin


    Wait(500);

    MMouse(466,292,1,1);

    wait(500);

    Mouse(466,292,1,1,true);

    Wait(500)

    MMouse(347,262,1,1);

    wait(750);

    TypeSend(NameofPlayer);

    wait(625);

    MMouse(351, 278, 1, 1);

    Wait(1000);

    TypeSend(password);

    Wait(570);

    Mouse(295, 322, 2, 2, true);

    end;


    Function FindFlax : Boolean;

    Begin
    Repeat

    if(findColor(a,b,Flax,132,224,631,545)) then
    result:= true;
    Until (IsUpText('Flax'))
    end;

    Begin
    Login;
    wait(500)
    end.

    I changed your script a bit.

    Now its less detectable, but it still does the same thing basically. :]

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

    Default

    holy crud...the first timeu use that ull get banned..its the most detectable thing ive ever seen
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah read tuts before scripting + put it in codes.. thanks

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

    Default

    I don't think he's been scripting as long as fakawi and wissup? guys.. So give him a break. Did your first script you guys messed around with use Mouse, MMouse and TypeSend? I'm guessing not. My first power miner used MoveMouseSmooth and ClickMouse and then I learned.. I turned out ok right?

    Back on topic, read my tut (links in sig) Things the beginner tuts don't teach you. On chapter one you can learn about typing and moving/clicking the move undetectably (for the most part).

  6. #6
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I wasn't giving him a hard time i was doing what you are doing, leading him to tuts to learn.

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

    Default

    Quote Originally Posted by steth1010 View Post
    I wasn't giving him a hard time i was doing what you are doing, leading him to tuts to learn.
    Well you said read tuts before scripting.. and obviously he did. What you were pretty much saying was learn to use Mouse and MMouse before scripting..

  8. #8
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol sorry, your right. I'll try to re-word my language to make it sounds right or better

    Also JAD can you please look at my Thread abit underneath this its called

    Clicking wrong spot! thanks, then i am done my V2.0 on my willow + seller

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 12-29-2008, 12:24 PM
  2. Invalid number of parameters error??
    By Bonfield in forum OSR Help
    Replies: 5
    Last Post: 03-01-2008, 12:05 PM
  3. Replies: 7
    Last Post: 02-24-2007, 01:39 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
  •