Merhabalar Bütün Server Sahipleri Kral oylamasında Bug ve Hile yapılmasından şikayetçi olduğu için bu konu tam size göre 
Bu kod ile birlikte Kral oylamasında 1K np isteyecektir ve 1K np'si olmayanlar oy veremeyecektir
Buyrun;
"IF @Loyalty < 1000" Yazan Yerdeki 1000 Rakamını İstediğiniz Gibi Degiştirebilirsiniz.
İyi forumlar

Bu kod ile birlikte Kral oylamasında 1K np isteyecektir ve 1K np'si olmayanlar oy veremeyecektir

Buyrun;
Kod:
/****** Object: Stored Procedure dbo.KING_ELECTION_PROC Script Date: 04.04.2013 21.40 ******/
-- 2013.04.04 "By_Bts Tarafından yapılmıştır"
CREATE PROCEDURE [dbo].[KING_ELECTION_PROC]
@strAccountID char(21), -- Voted man's account
@strCharID char(21), -- Nick's vote
@byNation tinyint,
@strCandidacyID char(21), -- Nick chosen people
@nRet smallint OUTPUT
AS
DECLARE @nRow smallint
SELECT @nRow = Count(strAccountID) FROM KING_BALLOT_BOX WHERE strAccountID = @strAccountID
IF @nRow > 0 -- Vote for one person
BEGIN
SET @nRet = -3
RETURN
END
DECLARE @Loyalty int
SELECT @Loyalty = Loyalty FROM USERDATA WHERE strUserID = @strCharID
IF @Loyalty < [COLOR="#FF0000"]1000[/COLOR]
BEGIN
SET @nRet = -3
RETURN
END
INSERT INTO KING_BALLOT_BOX (strAccountID, strCharID, byNation, strCandidacyID )
VALUES ( @strAccountID, @strCharID, @byNation, @strCandidacyID )
UPDATE KING_ELECTION_LIST SET nMoney = nMoney + 1
WHERE byType = 4 and strName = @strCandidacyID
SET @nRet = 1
RETURN
GO
"IF @Loyalty < 1000" Yazan Yerdeki 1000 Rakamını İstediğiniz Gibi Degiştirebilirsiniz.
İyi forumlar