addEventHandler('onResourceStart',getResourceRootElement ( getThisResource ( ) ),
function ( )
executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS `Like UnLike System` ( PlayerName,MyCoulmn[2],MyCoulmn[3] )' )
end
)
------------------------------------------------------------------------------------------------------------
function Results()
local Results = executeSQLQuery("SELECT * FROM `Like UnLike System` WHERE PlayerName=?",getPlayerName ( name ) )
if ( Results == "table" and #Results == 0 or not Results ) then
executeSQLQuery ( "INSERT INTO `Like UnLike System` ( PlayerName,MyCoulmn[1],MyCoulmn[2] ) VALUES(?,?,?,?)",getPlayerName(name))
else
executeSQLQuery('UPDATE `Like UnLike System` SET MyCoulmn[1], MyCoulmn[2] PlayerName =?',?,?,getPlayerName(name))
end
end
addEvent("gResults",true)
addEventHandler("gResults",root,Results)
can I keep it's with [ ? ] ?