Arkaşarlar login panelimde kayıt ol butonuna basınca login panele yetki veriniz diyor yetki verdigim halde tekrarlıyor hatayı kayıt olmuyor server in kodları hatam nerede
addEvent("girisyap",true)
addEventHandler("girisyap",root,function (kullaniciadi,sifre)
local hesap = getAccount(kullaniciadi)
if hesap then
local hesap = getAccount(kullaniciadi,sifre)
if hesap then
logIn(source,hesap,sifre)
outputChatBox("Hesaba Giriş Yaptınız!",source,0,255,0,true)
triggerClientEvent(source,"panelKapat",source)
else
outputChatBox("Şifre Yanlış!",source,255,0,0,true)
end
else
outputChatBox("Hesap Bulunamadı!",source,255,0,0,true)
end
end)
addEvent("kayitOl",true)
addEventHandler("kayitOl",root,function (kullaniciadi,sifre)
if hasObjectPermissionTo("resoure."..getResourceName(getThisResource()),"function.addAccount") then
local hesap = getAccount(kullaniciadi)
if not hesap then
local hesapOlustur = addAccount(kullaniciadi,sifre)
if hesapOlustur then
logIn(source,hesapOlustur,sifre)
triggerClientEvent(source,"panelKapat",source)
outputChatBox("Kayıt Oldun. (Kullanıcı Adı: "..kullaniciadi..",Şifre:"..sifre..")",source,0,255,0,true)
else
outputChatBox("Hesap Oluşturulamadı",source,255,0,0,true)
end
else
outputChatBox(kullaniciadi.."adlı bir hesap bulunmakta!",source,255,0,0,true)
end
else
outputChatBox("Lütfen Login Panele Yetki Veriniz!",root,255,0,0,true)
end
end)
addEventHandler("onPlayerLogout",root,function()
triggerClientEvent(source,"panelAc",source)
end)