胖子 发表于 2009-10-6 15:53:16

求个登陆直接注册帐号的存储!

随便输入帐号密码直接在库里生成并且保存的存储。有的给个谢谢

v123 发表于 2009-10-7 14:02:11

好象论坛上放有的。

gjbation1 发表于 2009-10-7 14:04:25

自己在论坛上好好找找我见过的!

xz7323746 发表于 2009-10-10 14:10:15

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

AS

--CurrentUserdan Silelim
delete from currentuser where straccountid = @AccountID

-- Oto üyelik
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 . WHERE strAccountID = @AccountID
IF @pwd IS null
BEGIN
        SET @nRet = 0
        RETURN
END

ELSE IF @pwd <> @Password
BEGIN
        SET @nRet = 0
        RETURN
END

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

if @PremiumServiceDEC = 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
        RETURN
END
GO
就是这个了。。

maore9810 发表于 2009-11-26 20:51:18

上楼的代码怎么用?

ctgwglzc 发表于 2009-11-26 23:48:44

上楼的代码怎么用?
maore9810 发表于 2009-11-26 20:51 http://www.kofans.cn/bbs/static/image/common/back.gif
替换你旧的存储就行了呗

evaydd 发表于 2009-11-27 19:40:22

这个好用吗???

leonjaykai 发表于 2009-12-1 17:46:40

這用在那一版上的有效??

cl1024 发表于 2009-12-14 15:43:49

服务器连线失败是怎么回事啊 怎么服务器都架好了 就是登录不了游戏呢

bathroy 发表于 2009-12-15 14:36:07

请问存储是那个文件?
页: [1] 2
查看完整版本: 求个登陆直接注册帐号的存储!