gamerxx Posted March 2, 2017 Share Posted March 2, 2017 (edited) السلام عليكم ورحمة الله وبركاته عساكم بخير شباب كان بدي طلب بسيط كان بدي احد من المبرمجين يعطيني كود يحفظ المكتوب بال memo مثل note كذا ضروري بالله <3 Edited March 2, 2017 by gamerxx Link to comment
Abu-Solo Posted March 2, 2017 Share Posted March 2, 2017 Just now, gamerxx said: السلام عليكم ورحمة الله وبركاته عساكم بخير شباب كان بدي طلب بسيط كان بدي احد من المبرمجين يعطيني كود يحفظ المكتوب بال label مثل note كذا ضروري بالله <3 استخدم قواعد الحفظ dbconnect SQLData Link to comment
gamerxx Posted March 2, 2017 Author Share Posted March 2, 2017 طيب اتقل عليك شوي وتسويها لي انت وانا بتعلم ؟ بالله لاني وربي ما فهمت شي منه مثلا note = guiCreateMemo(5, 60, 280, 255, "", false, wnd) بدي احفظ يلي ينكتب فيها Link to comment
Adham Posted March 2, 2017 Share Posted March 2, 2017 (edited) لين يضعط علي زر ويكتب بالايديت يجي بالميمو الكلام الكتبو بالايديت ويتحفظ ملحوظه : غير مجرب الكود -------------------------- Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == Button ) then local Text = guiGetText ( edit ) triggerServerEvent ( "OnSend", localPlayer, Text ) end end ) addEvent ( "onAccept", true ) addEventHandler ( "onAccept", root, function ( Text ) guiSetText ( memo, Text ) end ) --------------- Server addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS `Text_System` (Text)") end ) addEvent ( "OnSend", true ) addEventHandler ( "OnSend", root, function ( Text ) local result = executeSQLQuery ( "SELECT * FROM `Text_System` WHERE `Text` = ?", Text ) if ( result and #result == 0 ) then executeSQLQuery( 'INSERT INTO `Text_System` (Text) VALUES(?,?,?,?,?,?) ' ) triggerClientEvent ( source, "onAccept", source, result ) end end ) ; Edited March 2, 2017 by Deativated Link to comment
^iiEcoo'x_) Posted March 2, 2017 Share Posted March 2, 2017 6 minutes ago, Deativated said: لين يضعط علي زر ويكتب بالايديت يجي بالميمو الكلام الكتبو بالايديت ويتحفظ ملحوظه : غير مجرب الكود -------------------------- Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == Button ) then local Text = guiGetText ( edit ) triggerServerEvent ( "OnSend", localPlayer, Text ) end end ) addEvent ( "onAccept", true ) addEventHandler ( "onAccept", root, function ( Text ) guiSetText ( memo, Text ) end ) --------------- Server addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS `Text_System` (Text)") end ) addEvent ( "OnSend", true ) addEventHandler ( "OnSend", root, function ( Text ) local result = executeSQLQuery ( "SELECT * FROM `Text_System` WHERE `Text` = ?", Text ) if ( result and #result == 0 ) then executeSQLQuery( 'INSERT INTO `Text_System` (Text) VALUES(?,?,?,?,?,?) ' ) triggerClientEvent ( source, "onAccept", source, result ) end end ) ; Link to comment
Adham Posted March 2, 2017 Share Posted March 2, 2017 (edited) 2 minutes ago, #_iMr.[E]coo said: وش تسوي يعني ؟ Edited March 2, 2017 by Deativated Link to comment
^iiEcoo'x_) Posted March 2, 2017 Share Posted March 2, 2017 VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) Link to comment
N3xT Posted March 2, 2017 Share Posted March 2, 2017 56 minutes ago, Deativated said: لين يضعط علي زر ويكتب بالايديت يجي بالميمو الكلام الكتبو بالايديت ويتحفظ ملحوظه : غير مجرب الكود -------------------------- Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == Button ) then local Text = guiGetText ( edit ) triggerServerEvent ( "OnSend", localPlayer, Text ) end end ) addEvent ( "onAccept", true ) addEventHandler ( "onAccept", root, function ( Text ) guiSetText ( memo, Text ) end ) --------------- Server addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS `Text_System` (Text)") end ) addEvent ( "OnSend", true ) addEventHandler ( "OnSend", root, function ( Text ) local result = executeSQLQuery ( "SELECT * FROM `Text_System` WHERE `Text` = ?", Text ) if ( result and #result == 0 ) then executeSQLQuery( 'INSERT INTO `Text_System` (Text) VALUES(?,?,?,?,?,?) ' ) triggerClientEvent ( source, "onAccept", source, result ) end end ) ; ما يحتاج تخترع أكواد من عندك 1 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