搜索
 找回密码
 加入

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

胖子 2009-12-15 14:36:07 2250
随便输入帐号密码直接在库里生成并且保存的存储。有的给个谢谢

11 回复

v123
2009-10-7 14:02:11
点击查看详情
好象论坛上放有的。
gjbation1
2009-10-7 14:04:25
自己在论坛上好好找找我见过的!
xz7323746
2009-10-10 14:10:15
  1. CREATE PROCEDURE MYST_LOGIN
  2. @AccountID        varchar(21),
  3. @Password        varchar(13),
  4. @nRet                smallint        OUTPUT

  5. AS

  6. --CurrentUserdan Silelim
  7. delete from currentuser where straccountid = @AccountID

  8. -- Oto üyelik
  9. select @nRet = count(straccountid) from tb_user where straccountid = @AccountID

  10. if @nRet = 0
  11. begin
  12. insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')
  13. end


  14. DECLARE @Nation tinyint, @CharNum smallint
  15. SET @Nation = 0
  16. SET @CharNum = 0

  17. DECLARE @pwd varchar(13)

  18. SET @pwd = null

  19. SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID
  20. IF @pwd IS null
  21. BEGIN
  22.         SET @nRet = 0
  23.         RETURN
  24. END

  25. ELSE IF @pwd <> @Password
  26. BEGIN
  27.         SET @nRet = 0
  28.         RETURN
  29. END

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

  32. if @PremiumServiceDEC = 0
  33. begin
  34. insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)
  35. end

  36. SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
  37. IF @@ROWCOUNT = 0
  38. BEGIN
  39.         SET @nRet = 1
  40.         RETURN
  41. END
  42. IF @CharNum >= 0
  43. BEGIN
  44.         SET @nRet = 1
  45.         RETURN
  46. END
  47. ELSE
  48. BEGIN
  49.         SET @nRet = @Nation+1
  50.         RETURN
  51. END
  52. GO
复制代码
就是这个了。。

评分

1

查看全部评分

maore9810
2009-11-26 20:51:18
上楼的代码怎么用?
ctgwglzc
2009-11-26 23:48:44
上楼的代码怎么用?
maore9810 发表于 2009-11-26 20:51

替换你旧的存储就行了呗
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
请问存储是那个文件?
12下一页
高级模式
游客