شباب انا سويت مود في الجريب لست لازم لما اضيف شي يسوي سطور
بس في عندي مشكلة عن الاضافة في الجريت لست يبقا سطر واحد يضيف عليه
function allInf()
local Row = executeSQLQuery("SELECT * FROM SaveCodesNe")
if ( type( Row ) == "table" and #Row == 0 or not Row ) then
return {}
else
return Row
end
end
executeSQLQuery("CREATE TABLE IF NOT EXISTS `SaveCodesNe` (PlayerName TEXT,Serial TEXT)")
addEvent("SLL",true)
addEventHandler("SLL", root,
function ()
local aSerial = getPlayerSerial( source )
local Results = executeSQLQuery("SELECT * FROM `SaveCodesNe` WHERE Serial=?", tostring (aSerial ) )
if ( type ( Results ) == "table" and #Results == 0 or not Results ) then
executeSQLQuery ( "INSERT INTO `SaveCodesNe` ( PlayerName,Serial ) VALUES(?,?)",tostring (getPlayerName(source)),tostring ( aSerial ) )
else
executeSQLQuery('UPDATE `SaveCodesNe` SET PlayerName =? WHERE Serial =?', tostring (getPlayerName(source)),tostring ( aSerial ))
end
end
)