|
| 01 Feb 2012 10:21 AM |
Ok I am new to scripting and I am stuck with somthing that does not make sense. I am working on learning variables at the moment and I am stuck on somthing.
Ok it says that
The inner scope is a "child" of the current scope. The current scope cannot access variables in the inner scope.
and
The outer scope is a the "parent" of the current scope. The current scope has access to any variables in the outer scope.
Reading that I followed this script in a picture to the right
That looks like this.
a = 1 if a == 1 then print(a) -->1 local b = 2 if b == 2 then Print(b) -->2 local c = 3 d = 4 end print (c) -->nill print (d) -->4 end print(b) -->nill
Ok if the inner sope is the child of the current scope and the current scope cannot access variables in the inner scope then why does.
So if the current scope cant get info from the inner scope then why does it get
print (c) -->nill print (d) -->4
From the inner scope. and even after it says end it still gets information.
To see what i am talking about it is in the wiki site.
Here is a link
http://wiki.roblox.com/index.php/Variables
Go down to variable Scoped and look to the right that. Thar image with scripting in it thats Blue, Red, Green.
Please tell me if I am right.
Green is the child red is the current and blue is the parent.
Help me out please I am stuck |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 01 Feb 2012 10:29 AM |
| I thalt the name of one would not get looks much :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Feb 2012 11:24 AM |
first you go **** yourself then get banned call roblox get your account back
repeat these steps |
|
|
| Report Abuse |
|
|