Master_MTA Posted February 23, 2017 Share Posted February 23, 2017 (edited) السلام عليكم ورحمة الله وبركاته شباب الان في شي حيرني وش الخطا هنا؟ سيرفر addEvent('delmymsg',true) addEventHandler('delmymsg',root,function(thetime) local ow=executeSQLQuery("SELECT ownerm FROM tickitsystem WHERE Time=?", thetime ) local isread=executeSQLQuery("SELECT isread FROM tickitsystem WHERE Time=?", thetime ) local titel=executeSQLQuery("SELECT titel FROM tickitsystem WHERE Time=?", thetime ) local msg=executeSQLQuery("SELECT Mplayer FROM tickitsystem WHERE Time=?", thetime ) executeSQLQuery("DELETE FROM tickitsystem WHERE ownerm=? AND isread=? AND titel=? AND Mplayer=? AND Time=?",ow,isread,titel,msg,thetime) triggerEvent('sendtoclient',source) end) كلنت elseif source==GUIEditor.button[2] then local sel= guiGridListGetSelectedItem ( GUIEditor.gridlist[4] ) local ti=guiGridListGetItemText ( GUIEditor.gridlist[4], sel, 3 ) if sel ~=-1 then triggerServerEvent('delmymsg',me,ti) end كل الرموز معرفه مثل me وكذا Edited February 23, 2017 by Master_MTA Link to comment
' A F . Posted February 23, 2017 Share Posted February 23, 2017 جرب هاذا addEvent("delmymsg",true) addEventHandler("delmymsg",root, function ( aTime ) local sqlite = executeSQLQuery("SELECT * FROM tickitsystem WHERE Time=?" , aTime ); if ( sqlite and type ( sqlite ) == "table" and #sqlite ~= 0 ) then executeSQLQuery("DELETE FROM tickitsystem WHERE ownerm=? AND isread=? AND titel=? AND Mplayer=? AND Time=?",sqlite[1]["ownerm"],sqlite[1]["isread"],sqlite[1]["titel"],sqlite[1]["Mplayer"],sqlite[1]["Time"]); end end ); 1 Link to comment
Master_MTA Posted February 23, 2017 Author Share Posted February 23, 2017 (edited) 10 minutes ago, Default said: جرب هاذا addEvent("delmymsg",true) addEventHandler("delmymsg",root, function ( aTime ) local sqlite = executeSQLQuery("SELECT * FROM tickitsystem WHERE Time=?" , aTime ); if ( sqlite and type ( sqlite ) == "table" and #sqlite ~= 0 ) then executeSQLQuery("DELETE FROM tickitsystem WHERE ownerm=? AND isread=? AND titel=? AND Mplayer=? AND Time=?",sqlite[1]["ownerm"],sqlite[1]["isread"],sqlite[1]["titel"],sqlite[1]["Mplayer"],sqlite[1]["Time"]); end end ); تمام يقلبي زبط يعطيك العافيه ما تقصر بس وش السبب؟ اها يعطيك العافيه يقلبي فهمت Edited February 23, 2017 by Master_MTA Link to comment
' A F . Posted February 23, 2017 Share Posted February 23, 2017 الله يعآفيك , حياك الله . 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