Jump to content

مساعده في قيم مود


HelpGuys

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...