3ssol Posted June 5, 2013 Posted June 5, 2013 السلام عليكم شباب سويت لوحة تسجيل دخول وكل شي تماام بس يقولي الخطا في هل كود يقولي الخطا في رقم 4 وماني عارف وش اسوي addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) else outputChatBox("الباسورد خطا",source,255,0,0,true) end end )
#DRAGON!FIRE Posted June 5, 2013 Posted June 5, 2013 (edited) #~ لو جالس تسوي رجستر من اللوحة وبعدين تسجل وانت ما ضايف بقروب ادمن ما يصير #~ + ورني التريقر addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) Edited June 5, 2013 by Guest
3ssol Posted June 5, 2013 Author Posted June 5, 2013 addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == login ) then triggerServerEvent("onlogin",getLocalPlayer()) elseif ( source == register ) then triggerServerEvent("onregister",getLocalPlayer()) end end ) addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) else outputChatBox("الباسورد خطا",source,255,0,0,true) end end ) addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* هذا الحساب مستعمل",source,255,0,0,true) addAccount(user,pass) outputChatBox("الاسم " .. user .. " الرقم" .. pass.."",source,0,150,255,true) end end ) ذي كل الاكواد
PaiN^ Posted June 5, 2013 Posted June 5, 2013 إنت ما قاعد ترسل اسم الحساب او الباس مع التريقر لازم ترسلهم userE = -- الإيديت حق اسم الحساب passE = -- الإيديت حق الباس triggerServerEvent( "onlogin",getLocalPlayer(), guiGetText( userE ), guiGetText( passE ) )
#DRAGON!FIRE Posted June 5, 2013 Posted June 5, 2013 addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == login ) then triggerServerEvent("onlogin",getLocalPlayer()) elseif ( source == register ) then triggerServerEvent("onregister",getLocalPlayer()) end end ) addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) else outputChatBox("الباسورد خطا",source,255,0,0,true) end end ) addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* هذا الحساب مستعمل",source,255,0,0,true) addAccount(user,pass) outputChatBox("الاسم " .. user .. " الرقم" .. pass.."",source,0,150,255,true) end end ) ذي كل الاكواد addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == login ) then triggerServerEvent("onlogin",getLocalPlayer(),user,pass) user = اسم ايديت حق اسم الحساب || x Pass = اسم ايديت حق الباس elseif ( source == register ) then triggerServerEvent("onregister",getLocalPlayer(),user,pass) وــهنا نفس الشـي * end end )
فاّرس Posted June 5, 2013 Posted June 5, 2013 خطأ ^ triggerServerEvent("onlogin",getLocalPlayer(),guiGetText(userName), guiGetText(password)) userName = اديت اليوزر password = اديت الباسورد
#DRAGON!FIRE Posted June 5, 2013 Posted June 5, 2013 خطأ ^ triggerServerEvent("onlogin",getLocalPlayer(),guiGetText(userName), guiGetText(password)) userName = اديت اليوزر password = اديت الباسورد ـتـــكلمني .؟
فاّرس Posted June 5, 2013 Posted June 5, 2013 ^ اكيد, ما اعقتد راح تضبط, ولو ضبطت لو تسوي مثلي احسن من حيث التحقق اكثر...
#DRAGON!FIRE Posted June 5, 2013 Posted June 5, 2013 يخوي انا مجربها مسوي الف لوحة تسجيل كلها شغال 100 %
فاّرس Posted June 5, 2013 Posted June 5, 2013 (edited) يخوي انا مجربها مسوي الف لوحة تسجيل كلها شغال 100 % توقعت ما تضبط, آسف ع المدآخله + guiGetText توضح له اكثر... + في طريقه ثانيه بالنسبه لملف سيرفر, addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (player,user,pass) local account = getAccount(user,pass) if ( account ~= true ) then if (logIn ( player, account, pass ) == true) then else outputChatBox("الباسورد خطا",source,255,0,0,true) end end end ) Edited June 5, 2013 by Guest
3ssol Posted June 5, 2013 Author Posted June 5, 2013 ايه صح نسيت اسم الايديت يعطيكم الف الف عااااافيه ماقصررتو
#DRAGON!FIRE Posted June 5, 2013 Posted June 5, 2013 يخوي انا مجربها مسوي الف لوحة تسجيل كلها شغال 100 % توقعت ما تضبط, آسف ع المدآخله + guiGetText توضح له اكثر... خخخخخ # مو مششــكلة لا مدأخلة ولا شي # <~ + يب معأك حق توضح أكثر # بس يعني انا اقول اني مجربها وما فيها مشأكل # عل عموم مشكور
3ssol Posted June 5, 2013 Author Posted June 5, 2013 شبااااب صارت مشكله لما عدلنا ع الكود الحين يسجل عادي بس لما اضغط زر ريجستر يقولي تم التسجيل واسم حسابك ويحط اسم حسابي ويحط رقمي حلو بس المشكله وين ؟ المشكله لو اضغط ع الزر الف مره بيسجل الف مره ولو اخذنا الحساب نجرب فيها وسويناله login يقولي الحساب موموجود وش الحل ؟
#DRAGON!FIRE Posted June 5, 2013 Posted June 5, 2013 شبااااب صارت مشكله لما عدلنا ع الكودالحين يسجل عادي بس لما اضغط زر ريجستر يقولي تم التسجيل واسم حسابك ويحط اسم حسابي ويحط رقمي حلو بس المشكله وين ؟ المشكله لو اضغط ع الزر الف مره بيسجل الف مره ولو اخذنا الحساب نجرب فيها وسويناله login يقولي الحساب موموجود وش الحل ؟ #~ أول شي يجب ان تضيف المود لقروب ادمن addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end )
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