XPro Posted June 16, 2015 Posted June 16, 2015 لاهنتو ممكن شرح الكود ذا function xmlFile ( find ) if ( find == true ) then setElementData ( localPlayer, "checkbox", true ) else setElementData ( localPlayer, "checkbox", false ) end xmlFileName = "login.xml" local xmlFile = xmlLoadFile ( xmlFileName ) if not ( xmlFile ) then xmlFile = xmlCreateFile ( xmlFileName, "checkbox" ) xmlNodeSetAttribute ( xmlFile, "savecheckbox", tostring ( getElementData ( localPlayer, "checkbox" ) ) ) end xmlNodeSetAttribute ( xmlFile, "savecheckbox", tostring ( getElementData ( localPlayer, "checkbox" ) ) ) xmlNodeSetAttribute ( xmlFile, "username", tostring ( guiGetText ( Edit_user ) ) ) xmlNodeSetAttribute ( xmlFile, "password", tostring ( guiGetText ( Edit_pass ) ) ) xmlSaveFile ( xmlFile ) xmlUnloadFile ( xmlFile ) end function getUserNameAndPass ( ) xmlFileName = "login.xml" local xmlFile = xmlLoadFile ( xmlFileName ) if ( xmlFile ) then status = xmlNodeGetAttribute ( xmlFile, "savecheckbox" ) end if ( status == "true" ) then local username = tostring ( xmlNodeGetAttribute ( xmlFile, "username" ) ) local password = tostring ( xmlNodeGetAttribute ( xmlFile, "passWord" ) ) if not ( username == "" ) and not ( password == "" ) then guiCheckBoxSetSelected ( auto, true ) guiSetText ( Edit_user, username ) guiSetText ( Edit_pass, password ) end end end و مثال اخر نستخدم فيه xml يعني مثل الاكواد ذي و شكرا
i S6O Posted June 16, 2015 Posted June 16, 2015 يخوي لاتسوي موضوع جديد كل شوي .. + يمديك تضيف نفس الموضوع سابق كود هذا مدامه مااتقفل الموضوع السابق
XPro Posted June 16, 2015 Author Posted June 16, 2015 طيب الموضوع السابق صار فيه حديث و ما اسفدت شي + المره ذي جبت الكود
#Plair07 Posted June 16, 2015 Posted June 16, 2015 م اعرف اشرحه بالتفصيل لأن من الاساس فيه اشياء فالكود لسا م اعرفها , ومنها الاكس ام ال خلاصة الكود انه يحفظ لك اليوزر والباسوورد تقريباً على حسب اللي شايفه انا , والاكس ام ال فايدتها انها تحفظ لك الاشياء مثل الاس كيو ال بس اظنها اسهل هذا اللي اعرفه , وإنتظر إفادة الاخوان
</Mr.Tn6eL> Posted June 16, 2015 Posted June 16, 2015 انا ما اعتمد على الاكس ام ال في حفظ الباسوردات والاشياء الخاصة لانها حطيرة skype : 011101000110111000110110011001010110110000110000001110010011000000111001
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