Hello,
I'm getting a lot of errors to do with variables being declared in scope, the scripts do work in Second Life.
The variables are clearly defined within scope but it's claiming it would give a different meaning, is there something else I'm suppose to be doing extra here? the variable should be fine, it's defined only within scope local to the functions.
Variable Scope
-
- Posts: 5
- Joined: Wed May 15, 2013 7:41 pm
- Has thanked: 0
- Been thanked: 3 times
- Ilan Tochner
- Posts: 6727
- Joined: Sun Dec 23, 2012 8:44 am
- Has thanked: 5249 times
- Been thanked: 4674 times
- Contact:
Re: Variable Scope
Hi Jessica,
Please give a simple example that results in that scope error (the simpler the better).
Please give a simple example that results in that scope error (the simpler the better).
-
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1142 times
Re: Variable Scope
I suspect this is related to this MANTIS: http://opensimulator.org/mantis/view.php?id=3064Jessica Fall wrote:Hello,
I'm getting a lot of errors to do with variables being declared in scope, the scripts do work in Second Life.
The variables are clearly defined within scope but it's claiming it would give a different meaning, is there something else I'm suppose to be doing extra here? the variable should be fine, it's defined only within scope local to the functions.
Simple workround is to rename the local variable.
-
- Posts: 5
- Joined: Wed May 15, 2013 7:41 pm
- Has thanked: 0
- Been thanked: 3 times
Re: Variable Scope
Thanks, I'll check that out.
The scripts are all 1k lines plus so I can't really paste here.
The scripts are all 1k lines plus so I can't really paste here.