人物选择种族问题?
1、有角色账号可以正常选择种族进入游戏,无任何问题。2、新账号。输入账号密码后,选择种族,一直出现在连接。。。
请问什么原因
怎么解决
谢谢!! 数据库问题,你换个数据库就可以了,现在很多人发的库都解决一般的基本问题的,也有完美数据库的 这个数据库不错了
老外最新的数据库!
我就是想修复下!
具体知道那里问题不? CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID varchar(21),
@Password varchar(13),
@nRet smallint OUTPUT
AS
DECLARE @Nation tinyint, @CharNum smallint
SET @Nation = 0
SET @CharNum = 0
DECLARE @pwd varchar(13)
SET @pwd = null
SELECT @pwd = strPasswd FROM . WHERE strAccountID = @AccountID and idays=6
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
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 = @Nation+1
--SET @nRet = 1
RETURN
END
GO CREATE PROCEDURE myst_login
@AccountID varchar(21),
@Password varchar(13),
@nRet smallint OUTPUT
AS
delete from currentuser where straccountid = @AccountID
DECLARE @Nation tinyint, @CharNum smallint
SET @Nation = 0
SET @CharNum = 0
DECLARE @pwd varchar(13)
SET @pwd = null
SELECT @pwd = strPasswd FROM . WHERE strAccountID = @AccountID
IF @pwd IS null
BEGIN
SET @nRet = 0
RETURN
END
ELSE IF @pwd <> @Password
BEGIN
SET @nRet = 0
RETURN
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 = @Nation+1
RETURN
END
GO /****** Object:Stored Procedure dbo.NATION_SELECT Script Date: 6/6/2006 6:03:33 PM ******/
-- Created by Samma
-- 2002.01.18
CREATE PROCEDURE NATION_SELECT
@nRet smallint OUTPUT,
@AccountID char(21),
@Nation tinyint
AS
DECLARE @Row tinyint
SET @Row = 0
-- SELECT @Row = COUNT(*) FROMACCOUNT_CHARWHERE strAccountID = @AccountID
-- IF @Row > 0
-- BEGIN
-- SET @nRet = -1
-- RETURN
-- END
BEGIN TRAN
SELECT @Row = COUNT(*) FROMACCOUNT_CHARWHERE strAccountID = @AccountID
IF @Row > 0
UPDATE ACCOUNT_CHAR SET bNation = @Nation WHERE strAccountID = @AccountID
ELSE
INSERT INTO ACCOUNT_CHAR (strAccountID, bNation ) VALUES (@AccountID, @Nation)
SELECT @Row = COUNT(*) FROMWAREHOUSEWHERE strAccountID = @AccountID
IF @Row = 0
INSERT INTO WAREHOUSE ( strAccountID ) VALUES (@AccountID)
IF @@ERROR <> 0
BEGIN
ROLLBACK TRAN
SET @nRet =-2
RETURN
END
COMMIT TRAN
SET @nRet =1
GO 不知道那里问题了
我发的那个myst_login
自动注册账号的! 上面是我的相关储存大家看看!是不是还有与其他储存有关? 顶下! 我也是同样的问题`~顶上去`~
页:
[1]
2