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 and string.find(loginn," ") or string.len(hasloo) < 2 and string.find(hasloo," ") then
Pr?bowa?em z tym twoim kodem
if string.len(loginn) < 2 and string.find(loginn," ") or string.len(hasloo) < 2 and string.find(hasloo," ") then
print("Okej")
end
i wywala b?ad https://imgur.com/a/HwC5dAr
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)
if string.len(loginn) < 2 and string.find(loginn," ") or string.len(hasloo) < 2 and string.find(hasloo," ") then print("error") return end
triggerServerEvent("checkAccount", localPlayer, login, pass)
end
end)
Podpis
Pomogłem Ci
[you]
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
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)
if string.len(loginn) < 2 and string.find(loginn," ") or string.len(hasloo) < 2 and string.find(hasloo," ") then print("error") return end
triggerServerEvent("checkAccount", localPlayer, login, pass)
end
end)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach