scienziato-pazzo Posted April 14, 2013 Posted April 14, 2013 Hi, I've got a lua script with a variable that makes a guiGridList. But how I can use this variable in all functions?
PaiN^ Posted April 14, 2013 Posted April 14, 2013 In the beginning of your script : grid = guiCreateGridList ( ... ) And then you can use it in all the functions ..
scienziato-pazzo Posted April 14, 2013 Author Posted April 14, 2013 In the beginning of your script : grid = guiCreateGridList ( ... ) And then you can use it in all the functions .. Ok, thanks!
Castillo Posted April 14, 2013 Posted April 14, 2013 That's called global, if you don't put "local" infront of it, it'll be a global variable, table, etc.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now