Results 1 to 8 of 8

Thread: Duplicate Identifier Error

  1. #1
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Duplicate Identifier Error

    I seem to be having a problem while making my this script... I have only just started and this is just the basic basic basic stuff... The problem is part of this procedure, but I don't see what it is.

    SCAR Code:
    procedure BankToMine;
    var GuildLadder: string;
    var acc: extended;
    LoadBitmap:(GuildLadder);
    FindDeformedBitmapToleranceIn(GuildLadder,x,y,0,0,1000,800,50,50,true,acc)
    end.

    And it returns with the error message: Line 7: [Error] (17668:1): Duplicate identifier 'FindDeformedBitmapToleranceIn' in script.

    Can anyone help?

  2. #2
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    >.< um try another command and see if it still does that

    Join the fastest growing merchanting clan on the the net!

  3. #3
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe you need a 'begin' right before loadbitmap. Also, you're end should have a semi-colon and not a period, since this is a procedure rather than you're main loop. And you might also need a semicolon after FindDeformedBitmap. Not sure if that last one is necessary, but it is good form.

  4. #4
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks! For no real reason, I'm now getting a different error. Thanks anyway!

  5. #5
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Whats the different error? Does it have to do with FindDeformedBMPin? If so I think it is because you need to type in a number for acc (accuracy). Post if this is not it...
    SUMMER BREAK be back when I want to

  6. #6
    Join Date
    Dec 2006
    Posts
    374
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure BankToMine;
    var GuildLadder: integer;// if its a bmp it would be an interger not a string..
    var acc: extended;
    begin // need a begin for a procedure..
    LoadBitmap:(GuildLadder);
    if(FindDeformedBitmapToleranceIn(GuildLadder,x,y,0,0,1000,800,50,50,true,acc))then             // use if and then  
    //stuff here
    end.
    Another awsome scripting forum! Check it out: www.Uberbroproductions.net/forums
    TRY MY VARROCK ZAMMY MAGE CURSER/CONFUSER/WEAKENER! THE LINK IS BELOW
    http://www.srl-forums.com/forum/varr...56.html?t=6356
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~


  7. #7
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, now it is giving me a type mismatch error...this is what it looks like now:
    SCAR Code:
    procedure Bank2Mine;
    var GuildLadder: String;
    var acc: extended;
    begin
    if FindDeformedBitmapToleranceIn(GuildLadder,x,y,0,0,1000,800,50,50,true,acc)then
    begin
    MoveMouse(x,y)
    Wait(200)
    GetMousePos(x,y)
    ClickMouse(x,y,true)
    end;
      end.

    And it says "Line 14: [Error] (17675:78): Type mismatch in script" I don't get it. Thanks for the help everyone, BTW.

  8. #8
    Join Date
    Dec 2006
    Posts
    374
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    guild ladder is an integer.. if its bmp its a integer.

    var GuildLadder : integer

    edit: wich line is line 14

    also dont use move mouse and click mouse.. unless u wanna get banned. use srls Mouse
    Another awsome scripting forum! Check it out: www.Uberbroproductions.net/forums
    TRY MY VARROCK ZAMMY MAGE CURSER/CONFUSER/WEAKENER! THE LINK IS BELOW
    http://www.srl-forums.com/forum/varr...56.html?t=6356
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Duplicate identifier Error
    By soul hacker in forum OSR Help
    Replies: 15
    Last Post: 06-03-2007, 11:42 PM
  2. Duplicate Identifier Error
    By I Karma I in forum OSR Help
    Replies: 6
    Last Post: 12-05-2006, 11:55 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
  •