Jump to content

createWindow error


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...