Paylasalim.forumdizini.com (P.F)

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

    Oto Irk Seçme (Orc-human eşitsizligine karşı)

    avatar


    Oto Irk Seçme (Orc-human eşitsizligine karşı) Besikt10copy
    Kayıt tarihi : 01/01/70
    Forum Başarısı : 39680
    Cinsiyeti : Oto Irk Seçme (Orc-human eşitsizligine karşı) I_icon_gender_male Hangi Ülke : Türkiye

    icon10 Oto Irk Seçme (Orc-human eşitsizligine karşı)

    Mesaj tarafından  C.tesi Şub. 20, 2010 12:49 am

    DB nizde Yapacagınız Her Degişiklikde Lütfen Yedeginizi Alınız

    bazı servrlerde human-orc eşitsizligi oluyor ^^
    işine yarayanlar olabilir
    Bu Kodu , ACCOUNT_LOGIN'de ;
    Oto üyeliğin içine yazacaksınız.
    Yani Şuraya ;
    if @nRet = 0
    begin
    begin 'in hemen altında , instert into ile başlayan kod vardır.
    Onun hemen altına ekliyorsunuz ;

    declare @k int , @h int
    select @k = count(strAccountID) from KO_S1.dbo.ACCOUNT_CHAR where bNation = 1
    select @h = count(strAccountID) from KO_S1.dbo.ACCOUNT_CHAR where bNation = 2

    if @k < @h --eğer karuslar daha az ise;
    begin
    insert into KO_S1.dbo.ACCOUNT_CHAR (strAccountID, bNation, bCharNum) values (@AccountID, @k, 0)
    end

    if @h < @k --eğer humanlar daha az ise;
    begin
    insert into KO_S1.dbo.ACCOUNT_CHAR (strAccountID, bNation, bCharNum) values (@AccountID, @h, 0)
    end


    if @h = @k
    begin
    insert into KO_S1.dbo.ACCOUNT_CHAR (strAccountID, bNation, bCharNum) values (@AccountID, @h, 0)
    end

    INSERT INTO WAREHOUSE ( strAccountID ) VALUES (@AccountID)

      Forum Saati C.tesi Nis. 27, 2024 6:09 am