FSXTim Posted June 4, 2012 Share Posted June 4, 2012 Hello, I have a problem with my script. The script: function input1 (state) if state == "left" then if source == sud2 then inputb1 = guiCreateButton(0.85,0.1600,0.0727,0.0545,"1",true,sudoku_Window) if source == inputb1 then guiSetText(sud2, "1") end end end end addEventHandler("onClientGUIClick", getRootElement(), input1) This part of the script doesn't work (the text of the label is not changed to '1'): if source == inputb1 then guiSetText(sud2, "1") end Greets Link to comment
FSXTim Posted June 4, 2012 Author Share Posted June 4, 2012 No errors, when I enter /debugscript. Greets Link to comment
FSXTim Posted June 5, 2012 Author Share Posted June 5, 2012 I found a solution! Greets 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