Results 1 to 5 of 5

Thread: Invalid # of Parameters in P07include.simba ??

  1. #1
    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Invalid # of Parameters in P07include.simba ??

    So my auto fighter was working fine then when I would go to run it I would get this error
    Code:
    [Error] C:\Simba\Includes\P07Include.simba(57:51): Invalid number of parameters at line 56
    Compiling failed.
    and a seperate tab pops up showing me the line inside P07include.

    I havent touched anything so I am trying to figure out what happened.

    here is the script if you need it.
    Code:
    program Jeton07AF;
    {$I SRL/SRL.simba}
    {$I P07Include.simba}
    
    var
      X, Y: Integer;
      IsInCombat, runRandomNum1, runRandomNum2, cameraRandomNum1, cameraRandomNum2: Integer;
    
    Procedure P07_DeclarePlayer;
    begin
      P07_PlayerName:='*';
      P07_PlayerPass:='*';
    end;
    
    procedure turnRunOn;
    begin
      P07_TabInventoryTab(12)
      wait(Random(50));
      if (FindColor(X, Y, 5334130, 620, 411, 661, 450)) then
         P07_MouseBox(620, 411, 661, 450, mouse_left);
      P07_TabInventoryTab(4)
    end;
    
    procedure runRandomNumber;
    begin
      runRandomNum1 := 2;
      runRandomNum2 := (random(15));
      if runRandomNum2 = runRandomNum1 then
        turnRunOn;
    end;
    
    procedure moveCamera;
    begin
      P07_MakeCompassdegree(randomrange(0, 360));
    end;
    
    procedure cameraRandomNumber;
    begin
      cameraRandomNum1 := 2;
      cameraRandomNum2 := (random(5));
      if cameraRandomNum2 = cameraRandomNum1 then
        moveCamera;
    end;
    
    procedure AttackMonster;
    begin
      if P07_FindObjCustom(x,y, ['ttack'], [1615563, 7967641], 5) then
       begin
          P07_MouseBox(X, Y, X, Y, mouse_right);
          wait(300+random(60));
          P07_ChooseOptionMulti(['ttack']);
          end
      end;
    
    procedure ifInCombatLoop;
    begin
      IsInCombat := 0;
      begin
        wait(900+random(300));
        if (FindColor(X, Y, 65280, 220, 110, 330, 220)) or (FindColor(X, Y, 255, 220, 110, 330, 220)) then
          begin
          IsInCombat := 1
          end
          else IsInCombat := 0;
      end
    end;
    
    begin
      P07_DeclarePlayer;
      SetupP07Include;
      ActivateClient;
      ClearDebug;
    repeat
    if (not P07_LoggedIn) then
      P07_LogInPlayer;
      P07_MakeCameraAngleHigh;
    if (P07_LoggedIn) then
      begin
      runRandomNumber;
      ifInCombatloop;
        if IsInCombat = 0 then
          AttackMonster;
      cameraRandomNumber;
      end;
    until(isKeyDown(113));
    end.

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Seems like the file P07Include.simba has Invalid number of parameters at line 56

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    what would cause it to all of a sudden pop that error if it has been working fine, and what should I do exactly/

  4. #4
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by stealmojo View Post
    what would cause it to all of a sudden pop that error if it has been working fine, and what should I do exactly/
    Changes to the include, different script, scripting error

    Forum account issues? Please send me a PM

  5. #5
    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    So do i need to add " or what. I am not very familiar with coding, I can only copy and paste code

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
  •