Adham Posted June 24, 2017 Share Posted June 24, 2017 (edited) سلام عليكم ورحمه الله وبركاته اليوم سويت اكواد بقاعده البيانات و ابي لين يحدد شيء من القريد يحذف الحدده عن طريق الـ db فأ سويته وم شتغل كلنت صحيح م فيه شيء سرفر. addEvent ( "delete", true ) addEventHandler ( "delete", root, function (pSerial) if pSerial then local result = dbPoll(dbQuery(db, "SELECT player_serial FROM `Table` WHERE player_serial = ?", pSerial), -1) if ( type( result ) == 'table' and #result == 0 or not result ) then return end dbExec(db, "DELETE FROM `Table` WHERE player_serial = ?", pSerial) triggerEvent ( "onrefresh", root ) outputChatBox ( "تم الحذف", source, 255, 255, 0, true ) end end ) وذا معرف في كود أخر local player_Serial = getPlayerSerial ( source ) وم يحذف شيء والسلام عليكم Edited June 24, 2017 by Deativated Link to comment
iMr.WiFi..! Posted June 26, 2017 Share Posted June 26, 2017 (edited) addEvent ( "delete", true ) addEventHandler ( "delete", root, function (pSerial) if pSerial then local result = dbPoll(dbQuery(db, "SELECT * FROM `Table` WHERE player_serial = ?", pSerial), -1) if ( type( result ) == 'table' and #result == 0 or not result ) then return end dbExec(db, "DELETE FROM `Table` WHERE player_serial = ?", pSerial) triggerEvent ( "onrefresh", root ) outputChatBox ( "تم الحذف", source, 255, 255, 0, true ) end end ) == اذا مازبط اطرح كود انشاء التيبل Edited June 26, 2017 by iMr.WiFi..! 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