executeSQLQuery ( "CREATE TABLE IF NOT EXISTS aTalis_Anti ( serial , by ) " );
addEvent("serial",true)
addEventHandler("serial",root,
function (aName)
local aResult = executeSQLQuery ( "SELECT * FROM aTalis_Anti WHERE serial=? and by=?" , aName )
if ( aResult and #aResult == 0 ) then
executeSQLQuery ( "INSERT INTO aTalis_Anti ( serial , by ) VALUES ( ? , ? )" , aName );
outputChatBox("تم اضافة السريال",source,255,255,0,true)
else
outputChatBox ( "هذا السريال موجود مسبقا" , source )
end
end
)
addEvent ( "getSerials" , true )
addEventHandler ( "getSerials" , root , function ( )
local aResult = executeSQLQuery ( "SELECT * FROM aTalis_Anti" )
if ( aResult and type ( aResult ) == "table" and #aResult ~= 0 ) then
triggerClientEvent ( source , "checkserial" , source , aResult ) ;
end
end );
مساعدة ؟؟
@Abdul KariM
@Master_MTA
@#,+( _xiRoc[K]; >