Results 1 to 6 of 6

Thread: Invalid number of parameters error??

  1. #1
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Invalid number of parameters error??

    i get this error
    Code:
    Line 326: [Error] (13361:9): Invalid number of parameters in script
    the error happens in my main loop
    SCAR Code:
    begin
      setupSrl;
      Mousespeed := Mspeed;
      DeclarePlayers;
      ActivateClient;
      LoadDtms;
      LoginPlayer;
      MakeCompass('n');
      HighestBrightness;
      OpenBank;                             {line 326}
      WithdrawNats;
      repeat
        WithdrawOres;
        CastSuperheats;
        FindBankers;
        Bank;
        ProgressReport;
      until (Loads = Players[currentplayer].integers[0]);
      if (LoggedIn) then
        LogOut;
      if (Players[CurrentPlayer].Active = false) then
        NextPlayer(false)
      else
        NextPlayer(true);
    until (false);
    end.



  2. #2
    Join Date
    Sep 2007
    Posts
    501
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    goto the bank include and check what else there is in other words you need to type in the bank and maybe something else not sure, it will say in the wiki

  3. #3
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by KoKouKo View Post
    goto the bank include and check what else there is in other words you need to type in the bank and maybe something else not sure, it will say in the wiki

    ?? thats pretty confusing i really have no idea what u are trying to say



  4. #4
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    function OpenBank(WhichBank: String, ChangeCompass, ChangeAngle: Boolean): Boolean;
    by: SRL Development Team
    Description: Opens the bank if possible.
    Valid arguments are:
    'feb' (Falador East Bank)
    'fwb' (Falador West Bank)
    'veb' (Varrock East Bank)
    'vwb' (Varrock West Bank)
    'db'  (Draynor Bank)
    'akb' (Al-Kharid Bank)
    'lb'  (Lumbridge Bank)
    *******************************************************************************}

    so you have to go

    SCAR Code:
    OpenBank('yourthinghere',true,true);

    Where it sais ('yourthinghere'); put one of the valid arguements.

  5. #5
    Join Date
    Sep 2007
    Posts
    501
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    for future reference a "parameter" is a thing within the brackets, if you get an error stating invalid amount of parameters a good thing to do is search through your includes and find the command and see how many parameters should be there

  6. #6
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    yeah i know its a really stupid error, lol i had like no sleep and everything wasnt working for me thatnsk everyone for helping



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 jmoney343 in forum OSR Help
    Replies: 7
    Last Post: 05-07-2007, 01:22 AM
  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
  •