Variable Scope

Creating scripts
Post Reply
Jessica Fall
Posts: 5
Joined: Wed May 15, 2013 7:41 pm
Has thanked: 0
Been thanked: 3 times

Variable Scope

Post by Jessica Fall »

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.
User avatar
Ilan Tochner
Posts: 6528
Joined: Sun Dec 23, 2012 8:44 am
Has thanked: 4992 times
Been thanked: 4473 times
Contact:

Re: Variable Scope

Post by Ilan Tochner »

Hi Jessica,

Please give a simple example that results in that scope error (the simpler the better).
Graham Mills
Posts: 1314
Joined: Sun Dec 23, 2012 2:26 pm
Has thanked: 1134 times
Been thanked: 1142 times

Re: Variable Scope

Post by Graham Mills »

Jessica 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.
I suspect this is related to this MANTIS: http://opensimulator.org/mantis/view.php?id=3064

Simple workround is to rename the local variable.
Jessica Fall
Posts: 5
Joined: Wed May 15, 2013 7:41 pm
Has thanked: 0
Been thanked: 3 times

Re: Variable Scope

Post by Jessica Fall »

Thanks, I'll check that out.

The scripts are all 1k lines plus so I can't really paste here.
Post Reply