Jump to content

Problem with 'guiSetText()' while clicking on a button


FSXTim

Recommended Posts

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

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