Jump to content

مشكله التسجيل والدخول


RolEx

Recommended Posts

السلام عليكم

شخبار شعلومكم

الزبده

معي مشكله يرجل عجزت احلها

حتى الديبوق مايقول شي المهم

اكواد التسجيل والدخول ب الكلينت

ddEventHandler("onClientGUIClick",resourceRoot, function (  ) 
if ( source == Login ) then  
if ( guiGetText ( accEditbox ) ~= "" and guiGetText ( PassEditbox ) ~= "" ) then 
triggerServerEvent("onlogin",localPlayer,guiGetText(accEditbox),guiGetText(PassEditbox)) 
end 
elseif ( source == RegisterButton ) then  
local userr = guiGetText(RegisterAccount) 
local passr = guiGetText(RegisterPass) 
local passre = guiGetText(RetypePass) 
if ( userr ~= "" and passr ~= "" and passre ~= "" ) then 
if ( passr == passr ) then  
triggerServerEvent("onre",getLocalPlayer(),user,pass,passre) 
end 
end 
end 
end) 

سيرفر

  
addEvent("onre",true) 
addEventHandler("onre",getRootElement(), 
        function (userr,passr,passre) 
                local account = addAccount ( userr , passr ) 
                if ( account ) then 
    outputChatBox(": Account" .. userr .. " : Password " .. passr,source,math.random (255),math.random (255),math.random (255)) 
    else 
    outputChatBox("* This Account is Already Used",source,math.random (255),math.random (255),math.random (255)) 
                end 
        end 
) 

وكل ماسوي تسجيل بالسيرفر يقلي هذا الحساب موجود من اول

الزبده راسي مصدع من هالمشكله ض1

اللي معه حل يفيدني

Link to comment
من وين دول؟

user, pass, passre

من ذول

local userr = guiGetText(RegisterAccount) 
local passr = guiGetText(RegisterPass) 
local passre = guiGetText(RetypePass) 

في r زيادة

لازم تسوي التريقر بأسمائهم

حلينا المشكله :]

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