Results 1 to 7 of 7

Thread: Duplicate Identifier Error

  1. #1
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Duplicate Identifier Error

    SCAR Code:
    MouseSpeed:=8+Random(3);

    I get this error on that line:

    SCAR Code:
    Line 7: [Error] (15889:1): Duplicate identifier '' in script

    EDIT: heres most of that part:
    SCAR Code:
    Const                      
      MonkColor=12172221;      
      Betweentime = 3;          
      MouseSpeed:=8+Random(3);  
    Var x1,y1:Integer;          
                               
    function FindMonk: Boolean;

    How can I fix that?

  2. #2
    Join Date
    Nov 2006
    Location
    California, USA
    Posts
    336
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You probably have
    var
    MouseSpeed: Integer;

    somewhere in the script, remove that because its already defined.

  3. #3
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't have the word integer in any part of my script except for the last part of what I posted above.

  4. #4
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Would it help if I PMed you the whole script?

    PS=sorry for double post.

  5. #5
    Join Date
    Nov 2006
    Location
    California, USA
    Posts
    336
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Its because you put a := in the const declaration

    MouseSpeed is a variable.

  6. #6
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What do I change it too then? Is there like a huge tutorial for noobs?

  7. #7
    Join Date
    Nov 2006
    Posts
    235
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes there is. Look at the tutorial section
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig
    http://www.stats.srl-forums.com/sigs/5612.png
    http://www.wizards.com/magic/images/...or_iswhite.jpg

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 A G E N T in forum OSR Help
    Replies: 7
    Last Post: 02-13-2007, 01:46 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
  •