SRL Archive - Help

SRL 4 Error identifier 'x' in script


RAM

2007-08-28 18:24:01

[LEFT]If your post was closed and you were redirected here..it was because….I see so many New Beginners posting the same questions over and over, without even trying to search the answers for themselves…..

[/LEFT]
SRL Library Version 4 PUBLIC BETA

Compatibility Issues



x and y. We Removed the Global Variables x and y, since they caused much internal trouble.
Just put var x,y:Integer at the top of your script if it complains.

bullzeye95

2007-08-28 19:11:51

But the error is "duplicate identifier" =/

RAM

2007-08-28 19:34:30

If you get a 'duplicate identifier', it is most likely you are using an outdated script ;)

bullzeye95

2007-08-28 19:38:17

No, wouldn't it be an "unknown identifier"? Because in the old SRL, you didn't have to declare x and y in your scripts, which would now make an unknown identifier, not a duplicate identifier.

RAM

2007-08-28 20:05:52

Ok, so if you have any questions regarding errors with "X" in your script…Please refer them to bullzeye95 ;)

bullzeye95

2007-08-28 20:21:33

ROFL nevermind :p

I was just wondering why people were getting that with SRL 4. It doesn't make sense.

RAM

2007-08-28 20:24:35

Maybe I will contemplate it more later…just trying to "clean up" a bit right now…so many repetitive questions…

Birfday_Cake

2007-08-28 22:13:39

Wow! Thanks so much.. I could kiss you for that…

Wait, I wouldn't do that. LOL! Thanks bro!

mr n0obie2

2007-08-29 21:41:06

ok i unistalled everything and decide to start over so i installed scar and srl bac but theres no includes folders or any other folder except the srl one when i exctract it….am i doin sumthing rong like did i not completely uninstal it before or wut??

Keiraan

2007-09-03 01:06:03

when i unistalled it helped for one of my scripts :rolleyes:

Wizzup?

2007-09-03 02:28:58

From: bullzeye95
ROFL nevermind :p

I was just wondering why people were getting that with SRL 4. It doesn't make sense.


Well, the global x and y were removed from Globals, all functions now use local x and y, but sometimes scripts uses SRL's global x and y. :)

1qaz

2007-09-03 12:43:50

ty my auto miner is workign cuz o u :)

bullzeye95

2007-09-03 12:46:31

From: Wizzup?
Well, the global x and y were removed from Globals, all functions now use local x and y, but sometimes scripts uses SRL's global x and y. :)


He changed the title. It was "SRL 4 Error Duplicate identifier 'x' in script". I was wondering how that was possible.

Anyways, whatever :p

ShowerThoughts

2007-09-03 12:54:48

From: bullzeye95
ROFL nevermind :p

I was just wondering why people were getting that with SRL 4. It doesn't make sense.


because they use a srl 4 script with x and y at the top at the script
and they use srl 3.81 so you dont need to put x and y at the top thats why dup id ;)