Results 1 to 17 of 17

Thread: Same error in every script Duplicate identifier

  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Same error in every script Duplicate identifier

    Almost every script I try to use always comes up with this error: Duplicate identifier '' ". Can someone tell me what it means and how to fix it?

  2. #2
    Join Date
    Nov 2006
    Location
    Bel Air, Maryland, USA
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    duplicate identifier, i guess that means you are designating a global variable, and inside one of the functions there is a variable with the same name maybe? normally errors like that put a line number in it, it would have helped if you couldve copied/pasted the line and real error

  3. #3
    Join Date
    Jun 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    const
    MMX1 = 570;
    MMY1 = 5;
    MMX2 = 715;
    MMY2 = 160;

    Duplicate identifier '' "

  4. #4
    Join Date
    Jun 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can anyone else help,please?

  5. #5
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    have you updated SRL?

    if not then do that...

    if you did then its kinda wierd that its the same in every script, what ones did you try?
    METAL HEAD FOR LIFE!!!

  6. #6
    Join Date
    Jun 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, SRL 4.0 is installed. I normally use and try different yew cutter or iron miner scripts.

  7. #7
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    use scar 3.12 latest version, i got that same error in 3.11
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

  8. #8
    Join Date
    Oct 2007
    Location
    San Diego
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am getting an error on my scripts too.

    It keeps saying identifier expected or something like that.

  9. #9
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can PM me with the script/error if you'd like me to help you try and fix it.
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

  10. #10
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you moved the plugins? I think thats it...

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  11. #11
    Join Date
    Oct 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Isn't that error to do with not filling out all of the set up options?

  12. #12
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by reaper92 View Post
    const
    MMX1 = 570;
    MMY1 = 5;
    MMX2 = 715;
    MMY2 = 160;

    Duplicate identifier '' "
    These are already located in the global variables.
    No need to include them in your script =]

  13. #13
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    143
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    read my post "the basics"
    [IMG]file:///C:/Documents%20and%20Settings/damn/My%20Documents/My%20Pictures/Vluv.html[/IMG]

  14. #14
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wrong srl, or same variables what are already in Srl are in script, scar tells it to you.......
    dublicate = same to something
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  15. #15
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oho, I had problems with this a lot.
    Make sure that you only have {.include srl/srl.scar} and not something like {.include bank.scar} or something like that with it, because srl would already include the bank.scar, and you would have two variables of the same type.
    Active only during the Summer...

  16. #16
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    The problem is easy:
    In SCAR 3.11 those coords are already defined.
    Get SCAR 3.12c and the problem is fixed
    I made a new script, check it out!.

  17. #17
    Join Date
    Oct 2006
    Location
    MI USA
    Posts
    3,166
    Mentioned
    6 Post(s)
    Quoted
    11 Post(s)

    Default

    Sticky: Read This Before You Post
    YoHoJo

    Please be sure to post in the proper areas


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 36
    Last Post: 10-09-2007, 03:51 PM
  2. Replies: 0
    Last Post: 09-24-2007, 10:16 PM
  3. 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
  •