Results 1 to 3 of 3

Thread: Invalid number of parameters in script? What is wrong with my script?

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid number of parameters in script? What is wrong with my script?

    *PROBLEM SOLVED*

    It's just a simple FindColor script but it says I have invalid number of parameters. The example script looks like this-

    Code:
    FindColor(var x, y: Integer; color, xs, ys, xe, ye: Integer): Boolean;
    And mine looks like this

    Code:
    if(FOUND = 0)then //Find COLOR1 in coords XS1 YS1 XE1 YE1
             begin
                  FindColor(X, Y, COLOR1, XS1, YS1, XE1, YE1);
                  FOUND := 0;
             end;
    else
    What's up?!
    Last edited by groog; 03-23-2009 at 06:47 PM.

  2. #2
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Would you mind posting the entire script instead of just the example because afaik, that looks fine.

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  3. #3
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I actually found that FindColorSpiral works perfectly. That's what I wanted in the first place so it kind of works out. Thank anyway.

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
  •