Results 1 to 3 of 3

Thread: Invalid number of parameters

  1. #1
    Join Date
    Jun 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid number of parameters

    I found this script on scar-scripts and was wondering if someone could tell me how to fix it? I don't know much about writing the scripts but I've looked over and over trying to see if I could fix it but I don't see anything wrong with it, maybe someone more experienced, could help?? I'd appreciate help if you have it!

    If you need the whole thing I can post later but I figured I'd start out small since I don't know how to put the script in that script box and didn't wanna take up a whole page... the error is right in the middle where it says startplayers.

    //****** Settings ******\\
    MouseSpeed := 10; // Speed of the mouse.
    BenMouse := True; // Use human-like mouse movements ?
    End;

    //*****************DON'T TOUCH BELOW !!!*****************\\

    Procedure DeclarePlayers;
    Begin
    StartPlayers ( true );
    End;

    //*****************Progress Report*****************\\

    procedure ProgressReport;//Credits to fakawi, a part is from the guild raper...

    var Active: string;
    var i: Integer;

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Probably because the DeclarePlayers procedure does not support any player array. Could you at least post the error though?? That may help

  3. #3
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, can you post the whole script so that we can see what StartPlayers is? I'm pretty sure that you can't have another procedure in declare players, but I could be wrong...
    This
    SCAR Code:
    Procedure DeclarePlayers;
    Begin
    StartPlayers ( true );
    End;

    Should look something like this

    SCAR Code:
    procedure DeclarePlayers
    begin
        HowManyPlayers:=1;
        NumberOfPlayers(HowManyPlayers);
        CurrentPlayer := 0;

        Players[0].Name :='--';
        Players[0].Pass :='--';
        Players[0].Nick :='--';
        Players[0].Active :=True;

    end;

    Then again, I could be wrong.

    EDIT: JAD beat me to it -.-
    On vacation from July 2nd till middle of August


    Account Creator and Tutorial Island Runner (member | public) Errors fixed


    Check out my Complete forms tutorial. It will teach you everything you need to know about forms.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. invalid number of parameters
    By Griff in forum OSR Help
    Replies: 4
    Last Post: 09-27-2008, 04:16 AM
  2. Invalid Number Of Parameters
    By decide in forum OSR Help
    Replies: 3
    Last Post: 07-28-2008, 06:11 AM
  3. Invalid Number of Parameters
    By richyyrich09 in forum OSR Help
    Replies: 6
    Last Post: 06-12-2007, 10:48 PM
  4. invalid number of parameters
    By stuckman in forum OSR Help
    Replies: 4
    Last Post: 05-27-2007, 01:32 PM
  5. Invalid Number Of Parameters
    By Any-key in forum OSR Help
    Replies: 12
    Last Post: 04-21-2007, 12:11 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
  •