View Full Version : Same error in every script Duplicate identifier
reaper92
10-13-2007, 01:02 AM
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?
Bramble
10-13-2007, 01:05 AM
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
reaper92
10-13-2007, 01:11 AM
const
MMX1 = 570;
MMY1 = 5;
MMX2 = 715;
MMY2 = 160;
Duplicate identifier '' "
reaper92
10-13-2007, 02:12 AM
can anyone else help,please?
gerauchert
10-13-2007, 02:56 AM
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?
reaper92
10-13-2007, 03:54 AM
Yes, SRL 4.0 is installed. I normally use and try different yew cutter or iron miner scripts.
Timothegreat
10-13-2007, 03:49 PM
use scar 3.12 latest version, i got that same error in 3.11
schoony
10-13-2007, 04:06 PM
I am getting an error on my scripts too.
It keeps saying identifier expected or something like that.
You can PM me with the script/error if you'd like me to help you try and fix it.
Dumpin
10-13-2007, 09:13 PM
you moved the plugins? I think thats it...
blind shot
10-14-2007, 03:17 AM
Isn't that error to do with not filling out all of the set up options?
Derek-
10-14-2007, 03:20 AM
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 =]
Julza
10-15-2007, 07:38 AM
read my post "the basics"
Negaal
10-15-2007, 08:47 AM
wrong srl, or same variables what are already in Srl are in script, scar tells it to you.......
dublicate = same to something
Jackrawl
10-15-2007, 04:04 PM
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.
Markus
10-15-2007, 04:22 PM
The problem is easy:
In SCAR 3.11 those coords are already defined.
Get SCAR 3.12c and the problem is fixed :p
http://www.srl-forums.com/forum/images/satellite/buttons/expand.gif http://www.srl-forums.com/forum/images/satellite/misc/sticky.gif Sticky: Read This Before You Post (http://www.villavu.com/forum/showthread.php?t=16828)
YoHoJo
Please be sure to post in the proper areas
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.