SkatCh Posted August 22, 2014 Share Posted August 22, 2014 hi please i need some help here i got this warning when i hit the marker : function hideAllButtonsInMainWnd( ) for i = 1, 17 do guiSetVisible( shopGUI.buttons[i], false ) <----------- this line end guiSetVisible( shopGUI.buttons[ "Paintjob" ], false ) end Bad argument @ guiSetVisible [expected gui-element at argument 1, got nil] Link to comment
#DRAGON!FIRE Posted August 22, 2014 Share Posted August 22, 2014 function hideAllButtonsInMainWnd( ) for i = 1, 17 do if ( isElement ( shopGUI.buttons[i] ) ) then guiSetVisible( shopGUI.buttons[i], false ) <----------- this line end end guiSetVisible( shopGUI.buttons[ "Paintjob" ], false ) end Link to comment
SkatCh Posted August 22, 2014 Author Share Posted August 22, 2014 thx bro i got many other problems and i fix them with the same method , thx again for ur help topic can be locked. 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