[Help] Rellog Problem

Results 1 to 11 of 11
  1. #1
    Apprentice Supernatural is offline
    MemberRank
    Dec 2007 Join Date
    8Posts

    [Help] Rellog Problem

    Hi all,

    i have a problem with relog, allways when i go off and relog i cant login in. When i try it account is in use and i must restart server, eny one knows how can i fix?? Sry for my englis


  2. #2
    Apprentice kandykane is offline
    MemberRank
    Jun 2007 Join Date
    17Posts

    Re: Rellog Problem

    I have the same problem .. :(

  3. #3
    Account Upgraded | Title Enabled! q12345 is offline
    MemberRank
    Sep 2006 Join Date
    SrbinLocation
    318Posts

    Re: Rellog Problem

    It's your DB, and account_logout proc is messed up, (I think).

  4. #4
    Apprentice kandykane is offline
    MemberRank
    Jun 2007 Join Date
    17Posts

    Re: Rellog Problem

    Well think ya could hook us up a fix? I hate clearin accounts every logout lol

  5. #5
    Account Upgraded | Title Enabled! q12345 is offline
    MemberRank
    Sep 2006 Join Date
    SrbinLocation
    318Posts

    Re: Rellog Problem

    CREATE PROCEDURE [dbo].[ACCOUNT_LOGOUT]
    @AccountID varchar(21),
    @ServerNo int,
    @nRet smallint OUTPUT,
    @nRet2 smallint OUTPUT

    AS

    BEGIN TRAN

    DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID


    COMMIT TRAN
    SET @nRet = 1
    SET @nRet2 = 1
    GO
    Try that, hopefully it'll work. Oh and:

    CREATE PROCEDURE CLEAR_REMAIN_USERS
    @AccountID varchar(50)
    AS
    BEGIN TRAN
    DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID
    TRUNCATE TABLE CURRENTUSER
    COMMIT TRAN

    GO
    Credits to whoever wrote them.

  6. #6
    Apprentice kandykane is offline
    MemberRank
    Jun 2007 Join Date
    17Posts

    Re: Rellog Problem

    I try it tomorrow,ty ~night~

  7. #7
    Account Upgraded | Title Enabled! q12345 is offline
    MemberRank
    Sep 2006 Join Date
    SrbinLocation
    318Posts

    Re: Rellog Problem

    Good luck.

  8. #8
    Apprentice Supernatural is offline
    MemberRank
    Dec 2007 Join Date
    8Posts

    Re: Rellog Problem

    Quote Originally Posted by q12345 View Post
    Try that, hopefully it'll work. Oh and:



    Credits to whoever wrote them.
    i try it and nothing

  9. #9
    Account Upgraded | Title Enabled! RascaL is offline
    MemberRank
    Jan 2008 Join Date
    England -.-Location
    1,089Posts

    Re: [Help] Rellog Problem

    Is account_logout like ok?

    ~ RascaL

  10. #10
    Account Upgraded | Title Enabled! Lagalos is offline
    MemberRank
    Oct 2007 Join Date
    Under your bed >:)Location
    582Posts

    Re: [Help] Rellog Problem

    Code:
    USE [KN_online]
    GO
    /****** Object:  StoredProcedure [dbo].[ACCOUNT_LOGOUT]    Script Date: 05/09/2008 22:15:48 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[ACCOUNT_LOGOUT]
    @AccountID	varchar(21),
    @Password	varchar(13),
    @a		smallint OUTPUT,
    @nRet		smallint	OUTPUT
    as
    BEGIN TRAN
    	DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID
    	
    	DELETE FROM CURRENTUSER WHERE strCharID = @AccountID
    
    
    COMMIT TRAN
    BEGIN
    set @a=1
    set @nRet=1 
    RETURN
    END
    try that

  11. #11
    Apprentice Supernatural is offline
    MemberRank
    Dec 2007 Join Date
    8Posts

    Re: [Help] Rellog Problem

    hi i all i got it you mast creat procedure,
    Code:
    CREATE PROCEDURE ACCOUNT_LOGOUT 
    @AccountID   varchar(21), 
    @nRet      smallint   OUTPUT 
    AS 
    BEGIN TRAN 
       DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID 
        
    COMMIT TRAN 
    SET @nRet = 1 
    GO



Advertisement