PDA

View Full Version : Duplicate Identifier Error



I Karma I
12-05-2006, 06:51 AM
MouseSpeed:=8+Random(3);


I get this error on that line:

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

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

function FindMonk: Boolean;

How can I fix that?

TOB
12-05-2006, 06:53 AM
You probably have
var
MouseSpeed: Integer;

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

I Karma I
12-05-2006, 06:55 AM
I don't have the word integer in any part of my script except for the last part of what I posted above.

I Karma I
12-05-2006, 07:34 AM
Would it help if I PMed you the whole script?

PS=sorry for double post.

TOB
12-05-2006, 07:38 AM
Its because you put a := in the const declaration

MouseSpeed is a variable.

I Karma I
12-05-2006, 07:46 AM
What do I change it too then? Is there like a huge tutorial for noobs?

Wrycu
12-05-2006, 11:55 AM
Yes there is. Look at the tutorial section ;)