Jump to content

Help me I have got an Error...


tim171

Recommended Posts

Posted

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)

Posted

Obviously "GUIEditor_Window" is returning nil instead of a table.

Post the full script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 

Posted
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 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Script didn't make much sense.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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...