xjl12345 发表于 2009-1-5 01:15:01

1299 如何解决 种族重重复选择问题?

我改了CT给的 储存数据里的 两个 文件 但是还是没用

laoyou456 发表于 2009-1-5 01:26:44

修复重复选择种族的方法
修改存储过程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

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 = @Nation+1
             --SET @nRet = 1
      RETURN
END
GO==========================
CREATE PROCEDURE MYST_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
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

xjl12345 发表于 2009-1-5 01:39:29

我改了之后 上游戏 密码不对了 郁闷啊

syq-wf 发表于 2009-1-5 08:06:49

注意,这是两个存储过程,要建立两个存储过程,别放到一个里了。

28085279 发表于 2009-1-5 08:20:20

尽听楼上的瞎说,现在一般的库都已经改好了,剩下的是你的伺服务器的问题
一个好的LOG 跟AU

28085279 发表于 2009-1-5 08:21:26

建议用熊猫发的伺服务器配上小牛修改的AU应该可以对付了
页: [1]
查看完整版本: 1299 如何解决 种族重重复选择问题?