tim171 Posted January 4, 2013 Share 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) Link to comment
Castillo Posted January 4, 2013 Share Posted January 4, 2013 Obviously "GUIEditor_Window" is returning nil instead of a table. Post the full script. Link to comment
tim171 Posted January 4, 2013 Author Share Posted January 4, 2013 (edited) Edited January 4, 2013 by Guest Link to comment
Vision Posted January 4, 2013 Share 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 Link to comment
Castillo Posted January 4, 2013 Share 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 Link to comment
tim171 Posted January 4, 2013 Author Share 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? Link to comment
Castillo Posted January 4, 2013 Share Posted January 4, 2013 Script didn't make much sense. 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