Jump to content

Need 50p here about modshop


SkatCh

Recommended Posts

Posted

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]

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

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 

To Contact Me at Skype : [email protected]

Posted

thx bro i got many other problems and i fix them with the same method , thx again for ur help topic can be locked.

Failure is simply an opportunity to begin again more intelligently - Henry Ford

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