20-12-2015, 04:59 PM
|
#12
|
|
• الانـتـسـاب » Feb 2015
|
• رقـم العـضـويـة » 120749
|
• المشـــاركـات » 428
|
• الـدولـة » مش هنا
|
• الـهـوايـة » حرامى
|
• اسـم الـسـيـرفـر » Private Server
|
• الـجـنـس » Male
|
• نقـاط التقييم » 10
|
|
|
رد: Release: Remove Premium By Message #Xan
اقتباس:
المشاركة الأصلية كتبت بواسطة HLP
عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
كود PHP:
USE [SRO_VT_SHARD]
GO
/****** Object: StoredProcedure [dbo].[_Memo_Add] Script Date: 12/20/2015 06:28:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
------------------------------------------------
-- # PROCEDURE _Memo_Add ¼ِء¤
------------------------------------------------
ALTER procedure [dbo].[_Memo_Add]
--ات؟ن ئؤ¶َ¹جإح
@TargetCharName varchar(64),
@SenderCharName varchar(64),
@Message varchar(300),
--؛خ°، ئؤ¶َ¹جإح
@MAX_MEMO_COUNT int
as
If (@TargetCharName like @SenderCharName and @Message = 'RemovePremium') ----- Made By #Xan
BEGIN
DELETE FROM SRO_VT_SHARD.dbo._TimedJob
WHERE CharID = (select ID from _Refobjcommon )
--Made By #Xan
AND JobID in (9278,43653,33855)
End
begin transaction
declare @target_charid int
set @target_charid = (select CharID from _Char where CharName16 = @TargetCharName)
if (@@error <> 0 or @@rowcount = 0 )
begin
--±×·±¾ض´آ ¾ّ¾î~
rollback transaction
return -1
end
declare @memo_count int
select @memo_count = count(*) from _Memo where CharID = @target_charid
if( @memo_count >= @MAX_MEMO_COUNT )
begin
-- آتءِاشہج ²ثأ،³×~
rollback transaction
return -2
end
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-- EUROPE_SYSTEM (أضہخب£)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
declare @RefObjID int
select @RefObjID = RefObjID from _Char with (nolock) where CharName16 = @SenderCharName
if (@@error <> 0 or @@rowcount = 0 )
begin
rollback transaction
return -4
end
declare @RecordDate smalldatetime
set @RecordDate = GetDate()
insert _Memo (CharID, FromCharName,Message,Date,Status,RefObjID) values( @target_charid, @SenderCharName, @Message, @RecordDate, 0, @RefObjID )
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if (@@error <> 0 or @@rowcount = 0 )
begin
rollback transaction
--ب£°î!!
return -3
end
commit transaction
return @@identity
والرساله RemovePremium
وسيستم بتاع التيتل مش شغال كمان
مع العلم مفيش ولا البروسدر عايز يشتغل علي Memo_add
|
انا عندي العكس التيتل بس اللي شغال
|
|
|