mr.ekoo Posted June 19, 2013 Share Posted June 19, 2013 السلام عليكم بغيت اكواد 1-حفظ سريال الاعب لحساب معين 2-حدث الدخول للسيرفر 3-تسجيل دخول الاعب بحساب >> مدري كيف اشرحها الزبدة ابغي اكواد يوم مثلا اكتب كلمة يحفظ سريال الاعب بالحساب يعني بالداتا بيس ويوم يجي الاعب يدخل السيرفر يسجل دخوله اوتوماتيك لو كان بنفس السريال *ابغي الفنكشنات وابغي مساعدة في كيف اخليه يسجل دخوله في حساب يعني هل في كود او شيئ .؟ Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 addEventHandler ( 'onPlayerLogin', getRootElement ( ), عند تسجيل اللاعب addEventHandler ( "onPlayerJoin", getRootElement(), joiner ) عند دخول اللاعب aloowed = { [ 'ekoo' ] = 'myserial', } addEventHandler ( 'onPlayerLogin', getRootElement ( ), function ( _, theCurrentAccount ) local Serial = aloowed[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then cancelEvent( true ) outputChatBox( "The Mesaage", source) end end end ) https://wiki.multitheftauto.com/wiki/OnPlayerLogin لا تطلب شيء قبل ما تشوفه بالويكي الويكي يشرح لك كل شي Link to comment
mr.ekoo Posted June 19, 2013 Author Share Posted June 19, 2013 addEventHandler ( 'onPlayerLogin', getRootElement ( ), عند تسجيل اللاعب addEventHandler ( "onPlayerJoin", getRootElement(), joiner ) عند دخول اللاعب aloowed = { [ 'ekoo' ] = 'myserial', } addEventHandler ( 'onPlayerLogin', getRootElement ( ), function ( _, theCurrentAccount ) local Serial = aloowed[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then cancelEvent( true ) outputChatBox( "The Mesaage", source) end end end ) https://wiki.multitheftauto.com/wiki/OnPlayerLogin لا تطلب شيء قبل ما تشوفه بالويكي الويكي يشرح لك كل شي طيب لو تشوف موضوعي وش كاتب ابغي اعرف كيف احفظ السريال بالداتا بيس وكيف اخلي بدون ما يعمل شيئ الاعب يدخله بحساب يسويله تسجيل دخول اوتوماتيك Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 addEventHandler ( 'onPlayerLogin', getRootElement ( ), عند تسجيل اللاعب addEventHandler ( "onPlayerJoin", getRootElement(), joiner ) عند دخول اللاعب aloowed = { [ 'ekoo' ] = 'myserial', } addEventHandler ( 'onPlayerLogin', getRootElement ( ), function ( _, theCurrentAccount ) local Serial = aloowed[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then cancelEvent( true ) outputChatBox( "The Mesaage", source) end end end ) https://wiki.multitheftauto.com/wiki/OnPlayerLogin لا تطلب شيء قبل ما تشوفه بالويكي الويكي يشرح لك كل شي طيب لو تشوف موضوعي وش كاتب ابغي اعرف كيف احفظ السريال بالداتا بيس وكيف اخلي بدون ما يعمل شيئ الاعب يدخله بحساب يسويله تسجيل دخول اوتوماتيك موضوعك تخريف المهم استخدم sql https://wiki.multitheftauto.com/wiki/ExecuteSQLQuery Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 انت يعني تبي اول مايدش الروم يسجل دخول تلقائي لـلي يكتب الكوماند؟ Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 allowed = { [ 'ekoo' ] = 'serial', } addEventHandler ( 'onPlayerJoin', getRootElement ( ), function ( _, theCurrentAccount ) local Serial = allowed[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then logIn ( source, account, password ) end end end ) Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 allowed = { [ 'ekoo' ] = 'serial', } addEventHandler ( 'onPlayerJoin', getRootElement ( ), function ( _, theCurrentAccount ) local Serial = allowed[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then logIn ( source, account, password ) end end end ) خربطة .. xxx Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 allowed = { [ 'ekoo' ] = 'serial', } addEventHandler ( 'onPlayerJoin', getRootElement ( ), function ( _, theCurrentAccount ) local Serial = allowed[getAccountName(theCurrentAccount)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then logIn ( source, account, password ) end end end ) خربطة .. xxx سحقا وين الغلط؟؟؟ Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 bool logIn ( player thePlayer, account theAccount, string thePassword ) getAccount --Use it Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 هو يبي لو مثلا دخل هو يتاكد من سرياله ويسجله بحسابه وش دخل getAccont??? Link to comment
mr.ekoo Posted June 19, 2013 Author Share Posted June 19, 2013 Mr.Pres[T]ege لا ابغي يوم انا مسجل عادي وكل شيئ بحسابي اكتب كلمة المهم بعد ماكتبها لو دخلت السيرفر مرة ثانية علطول يسجل دخوله بالحساب لو كتب الكلمة الى ابغيه كيف اسجل السريال بالداتا بيس وكيف اسجل دخول الاعب بدون مايكتب الاسم والباس هو Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 xmlNodeSetAttribute xmlSaveFile xmlCreateFile xmlUnloadFile logIn حاول تسويه واطرح الي سويته واحنا نعدله لو غلط خلنا نحس انك سويت معنا شيء Link to comment
mr.ekoo Posted June 19, 2013 Author Share Posted June 19, 2013 طيب اعتقد في طريقة يحفظ البيانات بالداتا بيس (قاعدة البيانات) ؟ + امر تسجيل الدخول logIn ( thePlayer, account, password ) كيف اجيب الباس واسم المستخدم من خلال السريال :_ Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 طيب اعتقد في طريقة يحفظ البيانات بالداتا بيس (قاعدة البيانات)؟ الداتا ما يصلح اعتقد قصدك MySQL?? Link to comment
AHMAD1234 Posted June 19, 2013 Share Posted June 19, 2013 (edited) طيب اعتقد في طريقة يحفظ البيانات بالداتا بيس (قاعدة البيانات)؟ في اكثر من طريقة عشان تحفظ البيانات setElementData or getElementData setAccountData or getAccountData executeSQLSelect xmlCreateFile ض1 Edited June 19, 2013 by Guest Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 يب ما اعرف لها غيرك يفيدوني على فكرة ترا مو لازم sql استخدم الوظائف الي اعطيتك فوق اسهل بكثيرر Link to comment
][sojn][ Posted June 19, 2013 Share Posted June 19, 2013 طيب اعتقد في طريقة يحفظ البيانات بالداتا بيس (قاعدة البيانات)؟ في اكثر من طريقة عشان تحفظ البيانات setElementData or getElementData setAccountData or getAccountData executeSQLSelect xmlCreateFile ض1 setElementData or getElementData ما اعتقد تظبط Link to comment
AHMAD1234 Posted June 19, 2013 Share Posted June 19, 2013 طيب اعتقد في طريقة يحفظ البيانات بالداتا بيس (قاعدة البيانات)؟ في اكثر من طريقة عشان تحفظ البيانات setElementData or getElementData setAccountData or getAccountData executeSQLSelect xmlCreateFile ض1 setElementData or getElementData ما اعتقد تظبط يب داري بس انا اقله انه في اكثر من طريقة عشان يحط قاعدة بيانات ض1 Link to comment
mr.ekoo Posted June 19, 2013 Author Share Posted June 19, 2013 طيب الحين وصلت الى انه لما يدخل كيف اتاكد ان السريال موجود بالاكونت ؟ امر تسجيل الدخول logIn ( thePlayer, account, password ) كيف اجيب الباس واسم المستخدم من خلال السريال :_ Link to comment
|Mr|-Talal07-| Posted June 19, 2013 Share Posted June 19, 2013 انت لازم تسوي لوحه تسجيل و تسوي اذا ضغظ تسجيل الدخول تجيب الرمز من الاديت الي انت مسويها في اللوحه و كذا تجيب الرمز اما بدون لوحه ما تقدر Link to comment
mr.ekoo Posted June 19, 2013 Author Share Posted June 19, 2013 مافهمتك اخوي وش هو الاديت ؟؟ وليش احتاج لوحة ؟؟ Link to comment
|Mr|-Talal07-| Posted June 19, 2013 Share Posted June 19, 2013 الاديت هو المكان الي في لوحه تسجيل الدخول الي تكتب فيه اليوزر و الباس من تجيب الباس باستخدام guiGetText Link to comment
mr.ekoo Posted June 19, 2013 Author Share Posted June 19, 2013 طيب ياخي هذا وش اسوي فيه اقولك ابغي اسوي دخول تلقائي يعني مابغي كل مرة يدخل تجيه نافذة وتقوله سجل دخولك Link to comment
./BlackBird# Posted June 20, 2013 Share Posted June 20, 2013 طيب ياخيهذا وش اسوي فيه اقولك ابغي اسوي دخول تلقائي يعني مابغي كل مرة يدخل تجيه نافذة وتقوله سجل دخولك الاخ يحاول يفهمك ان مافي طريقة جلب باسورد الاكاونت غير انك تسوي نافذه تسجيل و لما يسجل تاخذ الباسورد المكتوب 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