scienziato-pazzo Posted April 14, 2013 Share 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? Link to comment
PaiN^ Posted April 14, 2013 Share Posted April 14, 2013 In the beginning of your script : grid = guiCreateGridList ( ... ) And then you can use it in all the functions .. Link to comment
scienziato-pazzo Posted April 14, 2013 Author Share Posted April 14, 2013 In the beginning of your script : grid = guiCreateGridList ( ... ) And then you can use it in all the functions .. Ok, thanks! Link to comment
Castillo Posted April 14, 2013 Share 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. Link to comment
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