try
if (DGS:dgsGetText(PasseditBox) == "444") then
DGS:dgsSetText(LogineditBox , "321")
elseif (DGS:dgsGetText(PasseditBox) == "321")
DGS:dgsSetText(Hello , "321")
oh no use this
GUIEditor = {
button = {},
window = {},
edit = {}
}
local screenW, screenH = guiGetScreenSize()
GUIEditor.window[1] = guiCreateWindow((screenW - 613) / 2, (screenH - 326) / 2, 613, 326, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.edit[1] = guiCreateEdit(19, 42, 277, 96, "", false, GUIEditor.window[1])
GUIEditor.edit[2] = guiCreateEdit(313, 42, 277, 96, "", false, GUIEditor.window[1])
GUIEditor.edit[3] = guiCreateEdit(168, 148, 277, 96, "", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(10, 263, 593, 49, "Test", false, GUIEditor.window[1])
function salh ( button )
if button == "left" then
if guiGetText(GUIEditor.edit[1]) == "123" then
guiSetText(GUIEditor.edit[2], "321")
end
if guiGetText(GUIEditor.edit[2]) == "321" then
guiSetText(GUIEditor.edit[3], "321")
end
end
end
addEventHandler ( "onClientGUIClick", GUIEditor.button[1], salh, false )
use the click function