Results 1 to 3 of 3

Thread: Script Error Help

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

    Question Script Error Help

    In my script i'am getting one last error
    Code:
    begin
      ClearDebug;
      SetupSRL;
      SetupP07Include;
      DeclarePlayers; // Calls the procedure, you can't forget this!
      LoginPlayer; // You want your player to login, right?
      repeat;
      Fishing;
      antiBan;
      WalkToBank;
      BankEdgeville;
      Dropoffitems;
    end;
    end.
    Its saying Invalid number of parameters at line 105
    Compiling failed. That is the bolded word.
    Code:
    procedure WalkToBank(RadialWalkin: Integer);
    begin
      case RadialWalkin of
        1: RadialWalk(1003042, 0, 90, 15, 5, 5); //the 15855597 would be where your color would go. to pick a color, go to SCAR, and press Ctrl + Alt + P and click on the spot that your color is. It will wright the color in the debug box.
        2: RadialWalk(941920, 0, 90, 50, 5, 5); //0, 90 is the section on the mini map it searches for, in this case, the whole north/west corner
        3: RadialWalk(1137259, 0, 180, 60, 5, 5); //60 means it will search all the way out to the edge of the mini map from the center
        4: RadialWalk(1191752, 0, 90, 60, 5, 5); //the 5, 5, means that if the flag doesn't appear, it will search 5 pixels away from that area
        5: RadialWalk(5526878, 0, 90, 15, 5, 5); //the 5, 5, means that if the flag doesn't appear, it will search 5 pixels away from that area
      end;
    end;

    That is the script of WalktoBank

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    remove the end; in your mainloop

    Simba Code:
    end; // get rid of this
    end.

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Your WalkToBank procedure takes an integer, but you don't pass it one:
    Simba Code:
    procedure WalkToBank(RadialWalkin: Integer);//Declaration
    WalkToBank;//Call without passing an integer

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •