Wleed1998 Posted August 28, 2016 Share Posted August 28, 2016 (edited) تم حل المشكله Edited August 28, 2016 by Guest Link to comment
!#NssoR_) Posted August 28, 2016 Share Posted August 28, 2016 صراحة اكوادك معفوسه فوق تحت وبين كل فنكشن 100 كيلو متر GUIEditor وحتي مافيه الجدول Link to comment
Wleed1998 Posted August 28, 2016 Author Share Posted August 28, 2016 (edited) --- تم حل المشكله Edited August 28, 2016 by Guest Link to comment
!#NssoR_) Posted August 28, 2016 Share Posted August 28, 2016 السطرين الي طرحتهم في اول موضوعك وتقول فيهم مشكلة مافيهم اي مشكلة ! وجرب خلي ملف السيرفر كذا executeSQLQuery("CREATE TABLE IF NOT EXISTS Buy4 (playerSerial,ID1,ID2)") executeSQLQuery("CREATE TABLE IF NOT EXISTS Buy5 (playerSerial,a1,a2,a3,a4,a5,a6)") addEvent( "NewP", true ) addEventHandler( "NewP", root, function(ID1,ID2) Wleed1 = executeSQLQuery("SELECT * FROM Buy4 WHERE playerSerial=?", getPlayerSerial(source) ) if ( Wleed1 ) then executeSQLQuery("INSERT INTO Buy4 (playerSerial,ID1,ID2) VALUES(?,?,?)",getPlayerSerial(source),ID1,ID2) playerSerial = getPlayerSerial(source) triggerClientEvent(root,'aBo',root,playerSerial,ID1,ID2) end end ) addEvent( 'NewP1', true ) addEventHandler( 'NewP1', root, function(a1,a2,a3,a4,a5,a6) local Wleed2 = executeSQLQuery("SELECT * FROM Buy5 WHERE playerSerial=?", getPlayerSerial(source) ) if ( Wleed2 ) then executeSQLQuery("INSERT INTO Buy5 (playerSerial,a1,a2,a3,a4,a5,a6) VALUES(?,?,?,?,?,?,?)",getPlayerSerial(source),a1,a2,a3,a4,a5,a6) triggerClientEvent(root,'aBo1',root, a1,a2,a3,a4,a5,a6) end end ) addEvent("getDatas",true) addEventHandler("getDatas",root, function() local query = executeSQLQuery("SELECT * FROM Buy4") triggerClientEvent(root,"datasCallBack",root,query) end ) addEvent("getDatas1",true) addEventHandler("getDatas1",root, function() local query = executeSQLQuery("SELECT * FROM Buy5") triggerClientEvent(root,"datasCallBack1",root,query) end ) addCommandHandler ( "Buy1", function ( p ) local www = getPlayerAccount(p) if not isGuestAccount ( www ) then if isObjectInACLGroup("user." .. getAccountName(www), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open1", resourceRoot ) end end end ) Link to comment
Wleed1998 Posted August 28, 2016 Author Share Posted August 28, 2016 طيب مشكور الخطا كان في القاعد الثاني المفروض احطها فوق صح + طيب النا اانا مسوي زر لو ضربته يجيب لك الي محدده من القريد ليست و رسلته لسيرفر ابيه يحذف رو واحد مثل 1 1 1 1 1 2 2 2 2 2 ابي لما اضرب الزر ينحفف الرو مثل انا محدد 1 1 1 1 1 ابيه يحذفه كيف Link to comment
Abdul KariM Posted August 28, 2016 Share Posted August 28, 2016 استخدم executeSQLQuery -- DELETE مثال executeSQLQuery("DELETE FROM players WHERE name=?", playerName) 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