mouamle Posted May 5, 2015 Share Posted May 5, 2015 السلام عليكم سؤال Gui.EditBox1 ابي القيمة الي فية مثلا تنحفظ ب .db File قاعدة بيانات وابي اجيب القيمة واحطها ب Editbox ثاني وشكرا Link to comment
The Killer Posted May 5, 2015 Share Posted May 5, 2015 viewtopic.php?f=160&t=80415&p=734304&hilit=+%D8%B3%D9%88%D9%8A%D8%AA%D9%87+%D9%84%D9%83+%D8%B9%D9%86+%D8%B7%D8%B1%D9%8A%D9%82+%D8%A7%D9%84%D8%B3%D8%B1%D9%8A%D8%A7%D9%84#p734304 هذي تحفظ لك الشيك بوكس خذ الفكره منها وطبقها ع الكلام Link to comment
' A F . Posted May 5, 2015 Share Posted May 5, 2015 ممكن تشرحلي ذا addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS Show_Chat (Serial TEXT, Setting TEXT, Chat TEXT)") end ) function SelectSetting (element) local data = executeSQLQuery ( "SELECT * FROM `Show_Chat` WHERE `Serial` = ?", getPlayerSerial (element) ) if ( type ( data ) == "table" and #data == 0) or not data then return { } else return data end end function getSetting ( element ) local settings = SelectSetting (element) triggerClientEvent ( element, "selectCheckBox", element, settings ) end addEvent ("saveSettings", true) addEventHandler ("saveSettings", root, function (setting) executeSQLQuery ("INSERT INTO `Show_Chat` (`Serial`, `Setting`, `Chat`) VALUES (?,?,?)", getPlayerSerial (source), tostring(setting), "false") outputChatBox ("Settings has been saved sucessfully.", source, 0, 255, 0) end ) addEvent ("removeSettings", true) addEventHandler ("removeSettings", root, function () executeSQLQuery ("DELETE FROM `Show_Chat` WHERE `Serial` = ?", getPlayerSerial (source)) outputChatBox ("Settings has been removed sucessfully.", source, 0, 255, 0) end ) addEvent ( "getSetting", true ) addEventHandler ( "getSetting", root, function () getSetting ( source ) end ) Link to comment
mouamle Posted May 6, 2015 Author Share Posted May 6, 2015 https://forum.multitheftauto.com/viewtopic.php?f=160&t=80415&p=734304&hilit=+%D8%B3%D9%88%D9%8A%D8%AA%D9%87+%D9%84%D9%83+%D8%B9%D9%86+%D8%B7%D8%B1%D9%8A%D9%82+%D8%A7%D9%84%D8%B3%D8%B1%D9%8A%D8%A7%D9%84#p734304هذي تحفظ لك الشيك بوكس خذ الفكره منها وطبقها ع الكلام شكرا 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