Results 1 to 5 of 5

Thread: Please Help ..... Again

  1. #1
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default Please Help ..... Again

    I am getting this error:
    [Error] (132:3): Invalid number of parameters at line 131
    Compiling failed.
    Here is the part where it happens

    Simba Code:
    procedure Bank;
    var
     x, y: integer;
     FlaxToBank: TPointArray;

    begin

      if SPS_WalkPath(FlaxToBank) then

      DepositBox -----> this is a TPA function was getting error here but removed the ';'
      Mouse(x, y, 0, 0, True); -----> this is line 131
      Mouse(312, 278, 0, 0, True)
    end;

    Thanks for help and guidance.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Is this your script?
    Also, show us the DepositBox procedure/function.

  3. #3
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Yes this is mine

    function DepositBox(x, y: Integer): Boolean;
    var
    CTS, I: Integer;
    TPA: TPointArray;
    ATPA: Array of TPointArray;
    begin
    CTS := GetColorToleranceSpeed;
    ColorToleranceSpeed(2);
    SetColorSpeed2Modifiers(0.44, 1.08);
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, 8161424, MSX1, MSY1, MSX2, MSY2, 6);
    ColorToleranceSpeed(CTS);
    ATPA := TPAToATPAEx(TPA, 15, 15);

    For I := 0 to High(ATPA) do
    begin
    MiddleTPAEx(ATPA[i], x, y);
    MMouse(x, y, 2, 2);
    If(IsUpTextMultiCustom(['ank, eposit, ox'])) then
    begin
    Result := True;
    GetMousePos(x, y);
    Break;
    end;
    end;
    end;

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Um.
    Change
    function DepositBox(x, y: Integer): Boolean;
    to just
    function DepositBox: Boolean;

    And that should fix it I guess.

  5. #5
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    omg thanks repped ++++

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
  •