Results 1 to 3 of 3

Thread: Invalid Number of Parameters.. as always

  1. #1
    Join Date
    Jun 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Angry Invalid Number of Parameters.. as always

    Hate to ask again but I'm stuck again, keep getting invalid number of parameters error. This is my first time trying to click on colors plus I suck at scripting in general, so any help would be much appreciated. Here's the part of the script it gets stuck on:

    program new;
    Procedure ClickBank;
    var
    X,Y:Integer;
    begin
    if FindColorTolerance(X, Y, 3700107, 244, 87, 296, 125, 5) then
    begin
    MoveMouse(X, Y, 1,1);
    Wait(250);
    ClickMouse(X, Y, mouse_left);
    end;
    end;


    It gets stuck on line 10, "ClickMouse(X, Y, mouse_left);" and I have no idea how to fix, thanks in advance if someone can help !

    Edit: the lines are tabbed correctly, just don't show up on post.

  2. #2
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    When using PascalScript the compiling issue is not the line highlighted for some reasons, but the issue is MoveMouse it takes two params not 4.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  3. #3
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    MoveMouse only takes 2 params, so it should be: MoveMouse(X, Y);
    You can find the function in the function list to the left, there you can find what params it takes
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •