iyaad Posted June 10, 2017 Share Posted June 10, 2017 function registerPlayer(username,password,passwordConfirm) --[[for k,v in ipairs(getAccounts()) do if getAccountData(v, "Serial") == getPlayerSerial(source) then noa = noa+1 end end]] local noa = dbPoll(dbQuery(dbb, "SELECT value FROM userdata WHERE value = ? AND key= ?", getPlayerSerial(source), "Serial"), -1) if #noa < 2 then if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then setAccountData(accountAdded, "Serial", getPlayerSerial(source)) triggerClientEvent(source,"hideRegisterWindow",getRootElement()) exports["guimessages"]:outputServer(source, "* You have sucessfuly registered! [Username: " .. username .. " #| Password: " .. password .. "]", 255, 255, 255) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else exports["guimessages"]:outputServer(source,"* An unknown error has occured! Please choose a different username/password and try again.", ذي لوحة حساب بس ما تسجل ايش الغلط ممكن مساعدة Link to comment
coNolel Posted June 11, 2017 Share Posted June 11, 2017 ما تسجل دخول ولا ما تسجل الحساب وش مكتوب بالديبوق يالطيب Link to comment
iyaad Posted June 11, 2017 Author Share Posted June 11, 2017 ما تسجل حساب register تسجل دخول عادي لما حد يخش السيرفر يضطر يسجل من اف 8 Link to comment
Ahmed toap Posted June 21, 2017 Share Posted June 21, 2017 ضيف اللووحة الي جروب الادمن 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