Jump to content

تعديل


Recommended Posts

سلام عليكم ورحمه الله وبركاته

اليوم سويت اكواد بقاعده البيانات

و ابي لين يحدد شيء من القريد يحذف الحدده عن طريق الـ

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 by Deativated
Link to comment
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 by iMr.WiFi..!
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...