Results 1 to 5 of 5

Thread: Invalid number of parameters?

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

    Default Invalid number of parameters?

    Getting this constant error at the moment but I'm not sure what I've done wrong

    [Error] C:\Simba\Scripts\RyanRangeGuild.simba(175:28): Invalid number of parameters at line 174
    Compiling failed.

  2. #2
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    make sure you have a matching parenthesis pairs, example wait(randomrange(50,3000));
    it would be helpful if you posted the code where the error occurs with the code tags

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

    Default

    Thanks for the reply,

    Code:
      if _findallrandoms(true) then
        begin
          RandomSolve;
          exit;
        end;
        runcombat;
      wait(100);
      inc(n);
    until n >= m;
    wait(randomrange(0, 99));
    end;

  4. #4
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    try putting parenthesis around the if statement. idk if the underscore is sqrewing it up.if u have a begin for the last end and a repeat for the until(n=m) ealrier in the code im not sure :P sorry. what does exit do? and does inc (n) just increase n by 1? im newish lol
    Last edited by Sk1nyNerd; 04-17-2013 at 06:54 PM.

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    If this is for OSR, then the problem lies in that
    Simba Code:
    if _FindAllRandoms(True) then
    should be
    Simba Code:
    if _FindAllRandoms(True, []) then
    However, you might as well use FindNormalRandoms as that does exactly the same as what you're asking it to do. Hopefully that'll sort it out for you.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

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
  •