Rat32 Posted May 20, 2015 Share Posted May 20, 2015 Hey! I have problem with elseif. He not sending a error-message. Please help . function rejestracja() un = guiGetText(uzytkownik) psw = guiGetText(haslo) auth = guiGetText(powtorzhaslo) if un ~= "" and psw ~= "" then if psw == auth then triggerServerEvent("rejestruj", getLocalPlayer(), un, psw) elseif un ~= "" then exports["notifications"]:showBox("info", "Pole z nazwą użytkownika nie może pozostać puste!") elseif psw ~= "" then exports["notifications"]:showBox("info", "Pole z hasłem nie może pozostać puste!") end end end addEventHandler("onClientGUIClick", rejkaBUTTON, rejestracja, false) Link to comment
WhoAmI Posted May 20, 2015 Share Posted May 20, 2015 function rejestracja() un = guiGetText(uzytkownik) psw = guiGetText(haslo) auth = guiGetText(powtorzhaslo) if un ~= "" and psw ~= "" then if psw == auth then triggerServerEvent("rejestruj", getLocalPlayer(), un, psw) end end if un == "" then exports["notifications"]:showBox("info", "Pole z nazwą użytkownika nie może pozostać puste!") end if psw == "" thne exports["notifications"]:showBox("info", "Pole z hasłem nie może pozostać puste!") end end addEventHandler("onClientGUIClick", rejkaBUTTON, rejestracja, false) 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