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 .. " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
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!
PaiN^ Posted April 14, 2013 Posted April 14, 2013 You're welcome " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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