Results 1 to 6 of 6

Thread: Anoyying Error..

  1. #1
    Join Date
    Mar 2007
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Anoyying Error..

    Line 127: [Error] (14898:23): Invalid number of parameters in script C:\Program Files\SCAR 3.06\Scripts\KoolDudes' Power Chopper v1.scar


    I dont Know Why, Yes im not leeching, I tried looking at Jads's errors stickie, and Srl manual, i cant seem to get it to work hereit is..


    SCAR Code:
    /////////////////DropAge///////////////////////
    Procedure Dropage;
    var
    x, y: integer;

    begin
      repeat
      If FindDtm(x,y,OakLog)then
        Mouse(x,y,2,2,false)
        ChooseOption(x, y, 'rop')
      Until (Not FindDTM(Oaklogs)
    end;


    Someone: 'Who the hell is TooManySitUps?'

    Boreas: 'Switch the first and last letter of my name, what do you get?'

    Someone: 'Um, SoreAb?'

    Boreas: 'And how do you get that?'

    Someone: 'From Too Many Sit Ups!! Haha, Boreas you are so clever!'

    Boreas: 'Ya he's like my evil twin that takes over when I'm being really sarcastic, or playing devil's advocate.'

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Couldn't find what made your error "Line 127: [Error] (14898:23): Invalid number of parameters in script C:\Program Files\SCAR 3.06\Scripts\KoolDudes' Power Chopper v1.scar" in script, but:
    SCAR Code:
    /////////////////DropAge///////////////////////

    Procedure Dropage;
    var
    x, y: integer;

    begin
      repeat
      If FindDtm(OakLog,x,y)then //dtm first then x and y
        Mouse(x,y,2,2,false)
        ChooseOption(x, y, 'rop')
      Until (Not FindDTM(Oaklogs)) //another ")"
    end;

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

    Default

    Quote Originally Posted by kooldude View Post
    Line 127: [Error] (14898:23): Invalid number of parameters in script C:\Program Files\SCAR 3.06\Scripts\KoolDudes' Power Chopper v1.scar


    I dont Know Why, Yes im not leeching, I tried looking at Jads's errors stickie, and Srl manual, i cant seem to get it to work hereit is..


    SCAR Code:
    /////////////////DropAge///////////////////////
    Procedure Dropage;
    var
    x, y: integer;

    begin
      repeat
      If FindDtm(x,y,OakLog)then
        Mouse(x,y,2,2,false)
        ChooseOption(x, y, 'rop')
      Until (Not FindDTM(Oaklogs)
    end;
    It's simple.
    At your second last row you have Until (Not FindDTM(Oaklogs).
    What you do is that you call the function FindDTM() with only 1 parameter.
    FindDTM requires 3, like you did on the lines before FindDtm(x,y,OakLog).

    There you go

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

    Default

    Quote Originally Posted by kooldude View Post
    Line 127: [Error] (14898:23): Invalid number of parameters in script C:\Program Files\SCAR 3.06\Scripts\KoolDudes' Power Chopper v1.scar


    I dont Know Why, Yes im not leeching, I tried looking at Jads's errors stickie, and Srl manual, i cant seem to get it to work hereit is..


    SCAR Code:
    /////////////////DropAge///////////////////////
    Procedure Dropage;
    var
    x, y: integer;

    begin
      repeat
      If FindDtm(x,y,OakLog)then
        Mouse(x,y,2,2,false)
        ChooseOption(x, y, 'rop')
      Until (Not FindDTM(Oaklogs)
    end;
    fixed! You need a box to look for the DTM in, and the DTM does come first, then the variables, then the coords box:

    SCAR Code:
    Procedure Dropage;
    begin
      repeat
        If (FindDtm(OakLog,x,y,MSX1,MSY1,MSX2,MSY2))then
        begin
          Mouse(x,y,2,2,false);
          ChooseOption(x,y,'rop');
        end;
      until(not(FindDTM(OakLog,x,y,MSX1,MSY1,MSX2,MSY2)))
    end;

    That would look for the DTM on the main screen. And also, like I did here, if your doing more then 1 thing after a then, you need a then begin, do stuff, end;

    Edit: Ralf, both uses of finding the DTM are wrong actually

  5. #5
    Join Date
    May 2007
    Location
    Sweden
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by JAD View Post
    fixed! You need a box to look for the DTM in, and the DTM does come first, then the variables, then the coords box:

    SCAR Code:
    Procedure Dropage;
    begin
      repeat
        If (FindDtm(OakLog,x,y,MSX1,MSY1,MSX2,MSY2))then
        begin
          Mouse(x,y,2,2,false);
          ChooseOption(x,y,'rop');
        end;
      until(not(FindDTM(OakLog,x,y,MSX1,MSY1,MSX2,MSY2)))
    end;

    That would look for the DTM on the main screen. And also, like I did here, if your doing more then 1 thing after a then, you need a then begin, do stuff, end;

    Edit: Ralf, both uses of finding the DTM are wrong actually
    Right didn't think of that. But now it's clear...

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

    Default

    Quote Originally Posted by RiddareRalf View Post
    Right didn't think of that. But now it's clear...
    I didn't mean that in a mean way like your so dumb for not knowing that.. I was just saying that for kooldude's sake and so that you knew.

    Sorry if it came out wrong

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  2. Error: Cannot Fix Script - Error Overgrowth - Begin Headdesking
    By PhantasmalScripter in forum OSR Help
    Replies: 6
    Last Post: 12-23-2006, 12:50 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
  •