tim171 Posted January 4, 2013 Posted January 4, 2013 This is the function function openGui() if not isElement(GUIEditor_Window[1]) then memberGui() end if not guiGetVisible(GUIEditor_Window[1]) then guiSetVisible ( GUIEditor_Window[1], true ) else guiSetVisible ( GUIEditor_Window[1], false ) end end` The Error: Memberpanel\client.lua:121: attempt to index global 'GUIEditor_Window' (a nil value)
Castillo Posted January 4, 2013 Posted January 4, 2013 Obviously "GUIEditor_Window" is returning nil instead of a table. Post the full script.
Vision Posted January 4, 2013 Posted January 4, 2013 function openGui() if not isElement(GUIEditor.window[1]) then memberGui() end if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible ( GUIEditor.window[1], true ) else guiSetVisible ( GUIEditor.window[1], false ) end end
Castillo Posted January 4, 2013 Posted January 4, 2013 function openGui() if not isElement(GUIEditor.window[1]) then memberGui() end if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible ( GUIEditor.window[1], true ) else guiSetVisible ( GUIEditor.window[1], false ) end end
tim171 Posted January 4, 2013 Author Posted January 4, 2013 THANK YOU Castillo IT WORKED!!! :) But why the functions aren't working? I had to do them in the server side?
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