Pvp Server | Pvp Serverler | Metin2 Pvp İp Adresleri | Knight Online Bilgi Paylaşım Platforumu

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


    Oyuna Girip Cıkınca Carın Silinmemesi İcin..

    LiveYourLife
    LiveYourLife
    Forum Kurucusu
    Forum Kurucusu


    Mesaj Sayısı Mesaj Sayısı : 525
    Leader Point: Leader Point: : 17925
    Kayıt tarihi Kayıt tarihi : 19/01/10
    Nerden Nerden : Derinliklerden :)

    ikon10 Oyuna Girip Cıkınca Carın Silinmemesi İcin..

    Mesaj tarafından LiveYourLife Cuma Ocak 22, 2010 3:55 pm

    acount login e


    CREATE PROCEDURE ACCOUNT_LOGIN
    @AccountID varchar(21),
    @Password varchar(13),
    @nRet smallint OUTPUT
    AS

    select @nRet = count(straccountid) from tb_user where straccountid = @AccountID

    if @nRet = 0
    begin
    insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')
    end
    DECLARE @Nation tinyint, @CharNum smallint
    SET @Nation = 0
    SET @CharNum = 0
    DECLARE @pwd varchar(13)
    SET @pwd = null
    SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID
    IF @pwd IS null
    BEGIN
    --SET @nRet = 0
    SET @nRet = 4
    RETURN
    END
    ELSE IF @pwd <> @Password
    BEGIN
    --SET @nRet = 0
    SET @nRet = 3
    RETURN
    END

    DECLARE @gokhantasci varchar(21)
    select @gokhantasci = count(straccountid) FROM premium_service WHERE strAccountID = @AccountID

    if @gokhantasci = 0
    begin
    insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)
    end

    SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
    IF @@ROWCOUNT = 0
    BEGIN
    SET @nRet = 1
    RETURN
    END
    IF @CharNum = 0
    BEGIN
    SET @nRet = 1
    RETURN
    END
    ELSE
    BEGIN
    SET @nRet = 1

    RETURN
    END
    GO

      Forum Saati Salı Mayıs 07, 2024 3:57 pm