HelpGuys Posted February 14, 2018 Share Posted February 14, 2018 addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else exports["notices"]:addNotification("يجب كتابة اسم المستخدم وكلمة المرور",'warning'); end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else exports["notices"]:addNotification("يجب كتابة اسم المستخدم وكلمة المرور",'warning'); end end end ) االمشكلة لما اسجل بحساب ثاني واحط حفظ وبرجع ادخل يطلعلي بحساب اول مدخلت بيه ومايتغير رجاء الحل Link to comment
#\_oskar_/# Posted February 14, 2018 Share Posted February 14, 2018 سوي تحديث لقاعدة البيانات Link to comment
HelpGuys Posted February 15, 2018 Author Share Posted February 15, 2018 addEvent("onGetSave",true) addEventHandler("onGetSave",root, function () local serial = getPlayerSerial(source) if isPlayerSave(serial) then local user,pass = getUserAndPass(serial) triggerClientEvent(source,"onPutSave",source,user,pass) end end ) كود سيرفر يمكن من هونا الخطا Link to comment
MrKAREEM Posted February 16, 2018 Share Posted February 16, 2018 اطرح اكواد السيرفر كاملة 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