cokacola Posted May 12, 2009 Share Posted May 12, 2009 I cant take this anymore...all my GUi's work, but this one...does anyone see anything wrong with this line: armed_Window[1] = guiCreateWindow(287,125,215,157,"Join the Armed Forces",false) Attempt to index global 'armed_Window[1]' a Nil value my other GUIs work, but this one is evil... Link to comment
Lordy Posted May 12, 2009 Share Posted May 12, 2009 Sometimes looking at the error it outputs helps. "Attempting to index a global " a nil value means that you don't have the table defined anywhere. Like the armed_Window needs to be a table, before you can add indexes to it. Just add armed_Window = {} before it. Link to comment
cokacola Posted May 12, 2009 Author Share Posted May 12, 2009 ahh thanks, i have been using the GuiEditor resource, and didn't realize that it did not add that this time 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