Jump to content

Elseif


Rat32

Recommended Posts

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

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