Results 1 to 3 of 3

Thread: Invalid number of parameters.....

  1. #1
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid number of parameters.....

    Hey,

    I need to know why I get an Error:

    Line 36: [Error] (36:79): Invalid number of parameters in script C:\Program Files\SCAR 3.15\Scripts\EL\Exp Gainer.scar

    In this Script:

    SCAR Code:
    Program Exp_Gainer;//
    ////////////////////

    ////////////////////////////////////////////
    Var                                        //
     x, y, c, v, i : Integer;                  //
     MulleinCOL : Array [ 1..4 ] of Integer;   //
     DT : Array [ 1..3 ] of Integer;           //
     CH : Array [ 1..2 ] of Integer;           //
     Blue : Array [ 1..4 ] of Integer;         //
    ////////////////////////////////////////////

    ////////////////
    Const          //
     MSx1 = 3;     //
     MSy1 = 29;    //
     MSx2 = 796;   //
     MSy2 = 596;   //
    ////////////////
     
    Procedure CheckMap;
     Begin
      DT[1] := DTMFromString ( '78DA63BCC1C0C0309F01057C9FB6174C3342F' +
           '98CD780C422543591D6E6A86AAE0289D9A86A1666C5A1AAB90D24' +
           'E6A2AAE9084A43557307A411554D7BB22D8A1A00A0F10E44' );
      DT[2] := DTMFromString ( '78DA63E4656660A8644001453392C0342394C' +
           'F2806545388A6665611AA1A4EA09A445435E1C501A86A04806AB2' +
           '50D5E44ECC425103002FCB0772' );
      DT[3] := DTMFromString ( '78DA63B464646008634001472626836946289' +
           'FD118C8F227A0C6814835B144D845400D00151E0B75' );
      begin
       KeyDown ( ord ( 9 ) );
       Wait ( 50 );
       KeyUp ( ord ( 9 ) );
       Wait ( 100 + random ( 100 ) );
       if ( FindDTM ( DT[1], x, y, MSx1 + 205, MSy1 + 116, MSx2, - 569, MSy2 - 424 ) ) then
       begin
        Writeln ( 'Correct Map' );
        KeyDown ( ord ( 9 ) );
        Wait ( 50 );
        KeyUp ( ord ( 9 ) );
        Wait ( 100 + random ( 100 ) );
       end else
       begin
        Writeln ( 'Go to The Valley of the Dwarves' );
        TerminateScript;
       end;
      end;
     End;

    And the line is:

    SCAR Code:
    if ( FindDTM ( DT[1], x, y, MSx1 + 205, MSy1 + 116, MSx2, - 569, MSy2 - 424 ) ) then

    Please help.

    Fort Ash
    I was born to cheat on Hero

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Try naming your DT's to DTOne, DTTwo, DTThree isntead of DT[1]. That could be what's messing it up. Hope this helps

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    The error was elsewhere and I successfully fixed it.
    Thanks for the help tho !

    Fort Ash
    I was born to cheat on Hero

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 decide in forum OSR Help
    Replies: 3
    Last Post: 07-28-2008, 06:11 AM
  2. Invalid number of parameters
    By kristahlyn in forum OSR Help
    Replies: 2
    Last Post: 06-16-2007, 02:39 PM
  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
  •