Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: dobrać
1. jaki dobrać string
Siemano nie wiem jaki dobra? string bo jak mam logowanie i rejestruje to mog? zarejestrowa? bez has?a, nawet jesli jest 1 spacja, a nie wiem jaki string da? skoro np jak dam
if string.len(loginn) < 2 or string.len(hasloo) < 2 then
to spacj? go omine
tutaj macie fragment kodu i pom??cie mi bo naprawd? nie wiem jaki string dobra?.

addEventHandler("onClientClick", root, function(button, state) -- zaloguj
    
if isMouseInPosition(screenW * 0.5894, screenH * 0.3411, screenW * 0.1175, screenH * 0.0611) and state == 'up' then
        local login
, pass = guiGetText(loginn), guiGetText(hasloo)
        
triggerServerEvent("checkAccount", localPlayer, login, pass)
        if 
string.len(loginn) < 2 or string.len(hasloo) < 2 then
    end
end
)

addEventHandler("onClientClick", root, function(button, state) -- zarejestruj
    
if isMouseInPosition(screenW * 0.5887, screenH * 0.5644, screenW * 0.1175, screenH * 0.0611) and state == 'up' then
        local login
, pass = guiGetText(loginn), guiGetText(hasloo)
        
triggerServerEvent("registerAccount", localPlayer, login, pass)
    
end
end
)