Jump to content

طلب تعديل xX[تعديل اكواد ]Xx


Recommended Posts

السلام عليكم ورحمه الله وربكاته

الحين حبيت اعدل علي قيم مود من اول وجديد

المهم سويت الاكواد وشغاله الحمدالله بس صنع حساب ما يعمل حاولت فيه كتير وما يعمل ممكن تصححهوه لي ؟

--client 
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 
                outputChatBox("* You Must Write Username Or Password",255,0,0) 
            end 
        elseif ( source == reg ) then 
            if user ~= "" and pass ~= "" then 
                triggerServerEvent("onReg",localPlayer,user,pass) 
            else 
                outputChatBox("* You Must Write Username Or Password",255,0,0) 
            end 
        end 
    end 
) 
  
--server 
addEvent("onReg",true) 
addEventHandler("onReg",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        if acc then 
            outputChatBox("* This Account is Already Exist",source,255,0,0) 
        else 
            addAccount(user,pass) 
            outputChatBox("* Username = " .. user .. "",source,0,255,0) 
            outputChatBox("* Password = " .. pass .. "",source,0,255,0) 
        end 
    end 
) 
  

Link to comment

جرب

addEvent("onReg",true) 
addEventHandler("onReg",root, 
function (user,pass) 
if ( addAccount ( user , pass ) ) then  
outputChatBox("* Username = " ..user.. "",source,0,255,0) 
outputChatBox("* Password = " ..pass.. "",source,0,255,0) 
else 
outputChatBox("* This Account is Already Exist",source,255,0,0) 
end 
end 
) 
  

Link to comment
جرب
addEvent("onReg",true) 
addEventHandler("onReg",root, 
function (user,pass) 
if ( addAccount ( user , pass ) ) then  
outputChatBox("* Username = " ..user.. "",source,0,255,0) 
outputChatBox("* Password = " ..pass.. "",source,0,255,0) 
else 
outputChatBox("* This Account is Already Exist",source,255,0,0) 
end 
end 
) 
  

ما اشتغل كل ما اسجل يقلي هذا الحساب موجود واسجل بحسبات ما موجوده بي الاسل

Link to comment

1XxCr{o}sS @ لقد قمت بتعديل الإكواد الازمه وشي تاني يرجأ ضيف فيه الاسل Defult - function.AddAccount - function.register

#Client

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 
                outputChatBox("* You Must Write Username Or Password",255,0,0) 
            end 
        elseif ( source == reg ) then 
            if user ~= "" and pass ~= "" then 
                triggerServerEvent("onReg",localPlayer,user,pass) 
            else 
                outputChatBox("* You Must Write Username Or Password",255,0,0) 
            end 
        end 
    end 
) 

#Server

addEvent("onLoginWith",true) 
addEventHandler("onLoginWith",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        local serial = getPlayerSerial(source) 
        if acc then 
            logIn(source,acc,pass) 
            outputChatBox("* تم بنجاح تسجيل دخول",source,0,255,0) 
            triggerClientEvent(source,"onCl",source) 
        else 
            outputChatBox("* الحساب او كلمة المرور خطأ",source,255,0,0) 
        end 
    end 
) 
#Server 
addEvent("onLogin",true) 
addEventHandler("onLogin",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        if acc then 
            logIn(source,acc,pass) 
            outputChatBox("* تم بنجاح تسجيل دخول",source,0,255,0) 
            triggerClientEvent(source,"onCl",source) 
        else 
            outputChatBox("* الحساب او كلمة مرور خطأ",source,255,0,0) 
        end 
    end 
) 
  
addEvent("onReg",true) 
addEventHandler("onReg",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        if acc then 
            outputChatBox("* هذا الحساب مستخدم من قبل",source,255,0,0) 
        else 
            addAccount(user,pass) 
            outputChatBox("* Username = " .. user .. "",source,0,255,0) 
            outputChatBox("* Password = " .. pass .. "",source,0,255,0) 
        end 
    end 
) 
Edited by Guest
Link to comment
@Le3bA

بالله من جايب فنكشن AddPlayer

??

Default @ اسف بالغلط حطيته .

يعني تقلد طاره و تقلد ابو شنب في طريقتو لول حياتك تقليد × تقليد

صح والله

ههههههههههههههههههههههههه

ضحكتني يلد

:D:D:D:D

Link to comment

:mrgreen: خلاص شكرا ديفيلت ولعبه وماركو

المشكله اني بغبائي نسيت اضيف المود لجروب الادمن

شكرا للمساعده :D

سؤال تاني بس كيف لما اجي اكتب في ايديت

الكلام يظهرلي علي هيئه ******

بدل من حروف وارقام

هاي الطلب وبس :fadein:

Link to comment
:mrgreen: خلاص شكرا ديفيلت ولعبه وماركو

المشكله اني بغبائي نسيت اضيف المود لجروب الادمن

شكرا للمساعده :D

سؤال تاني بس كيف لما اجي اكتب في ايديت

الكلام يظهرلي علي هيئه ******

بدل من حروف وارقام

هاي الطلب وبس :fadein:

العفو حياك الله

Link to comment
@Le3bA

بالله من جايب فنكشن AddPlayer

??

Default @ اسف بالغلط حطيته .

يعني تقلد طاره و تقلد ابو شنب في طريقتو لول حياتك تقليد × تقليد

وين تقليد طاره

وين تقليد ابو شنب

انت تعرف موداتي مثلن الصنعها ؟

اعرفها بعدين تعال اتكلم ..

Link to comment

Default @ اسف بالغلط حطيته .

يعني تقلد طاره و تقلد ابو شنب في طريقتو لول حياتك تقليد × تقليد

وين تقليد طاره

وين تقليد ابو شنب

انت تعرف موداتي مثلن الصنعها ؟

اعرفها بعدين تعال اتكلم ..

ما يقصد

مودات يقصيد اسلوب

يعني زي كدا

Default @ عندك غلط في كود د يعني زي كدا

بس لا تقلبو هواش

خلاص

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