Pvp Serverler - Ko Pvp Server - Pvp Forum - İp Adresleri - Server Tanıtımı

Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli. Regist10

Join the forum, it's quick and easy

Pvp Serverler - Ko Pvp Server - Pvp Forum - İp Adresleri - Server Tanıtımı

Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli. Regist10

Pvp Serverler - Ko Pvp Server - Pvp Forum - İp Adresleri - Server Tanıtımı

Would you like to react to this message? Create an account in a few clicks or log in to continue.

    Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli.

    Admin
    Admin
    KoPvp Yönetmen
    KoPvp Yönetmen


    <b>Mesaj Sayısı</b> Mesaj Sayısı : 382
    <b>Konu Sayısı</b> Konu Sayısı : 381
    <b>Nerden</b> Nerden : Nereye =)
    <b>K.O Gücü</b> K.O Gücü : 0
    Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli. 16c0w7t
    Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli. 2im3nmu
    Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli. F4n0vm

    Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli. Empty Krallık Seçiminde Oy Verme Level Ayarlama Yapıştır F5 e Bas.Yeterli.

    Mesaj tarafından Admin C.tesi Tem. 17, 2010 1:48 am

    Kod:
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[KING_ELECTION_PROC]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    drop procedure [dbo].[KING_ELECTION_PROC]
    GO

    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO

    CREATE PROCEDURE [dbo].[KING_ELECTION_PROC]
    @strAccountID   char(21),   
    @strCharID   char(21),   
    @byNation   tinyint,
    @strCandidacyID   char(21),
    @nRet      smallint OUTPUT

    AS

    DECLARE @VoteLevel tinyint
    DECLARE @Level tinyint

    SET @VoteLevel = 30
    SELECT @Level = Level FROM USERDATA WHERE strUserID = @strCharID
    IF @Level < @VoteLevel
    BEGIN
       SET @nRet = -4
       RETURN
    END
    ELSE
    BEGIN

       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
       ELSE
       BEGIN
          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
       END
    END
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO
    votelevel yerini istediginiz gibi ayarlayabilirsiniz.

      Forum Saati Cuma Nis. 19, 2024 1:01 pm