server kurdum hata alıyorum yardım !!!

  • Konbuyu başlatan Konbuyu başlatan yamtar09
  • Başlangıç tarihi Başlangıç tarihi
Konu Yazar

yamtar09

New Member
May
2
0
beyler serveri zar zor bi şekilde kurdum ama oyuna bi kere girip çıktıktan sora 2. sinde id pw bölümünde invalid password alıyorum ayrıca editörle charda düzenleme yaparken karakter oyunda iken düzenleme yapamazsınız hatası alıyorum karakter oyunda olmasa bile yardımcı olabilirseniz çok sevinirim
 
account login sende ne şekilde bilmiyorum ama bununla değiştir düzelir.

Kod:
CREATE PROCEDURE ACCOUNT_LOGIs

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

AS

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

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

declare @ban int , @ban1 int, @ban2 int
select @nRet = count(straccountid) from currentuser
select @ban = authority from userdata where struserid = (select strcharid1 from account_char where straccountid = @AccountID and strcharid1 is not null )
select @ban1 = authority from userdata where struserid = (select strcharid2 from account_char where straccountid = @AccountID and strcharid1 is not null )
select @ban2 = authority from userdata where struserid = (select strcharid3 from account_char where straccountid = @AccountID and strcharid1 is not null )

if @ban = 255 or @ban1 = 255 or @ban2 = 255
begin
Set @nRet = 4
RETURN
end

DECLARE @Nation tinyint
SET @Nation = 0
-- tid login method by samma 2004.02.24
DECLARE @pwd varchar(13)

SET @pwd = null

SELECT @pwd = strPasswd FROM TB_USER WHERE strAccountID = @AccountID
IF @pwd IS null
BEGIN
SET @nRet = 0
RETURN
END

ELSE IF @pwd <> @Password
BEGIN
SET @nRet = 0
RETURN
END
delete from premium_service Where nDays = '0'
SELECT @Nation = bNation FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
IF @@ROWCOUNT = 0
BEGIN
SET @nRet = 1
RETURN
END
BEGIN
SET @nRet = 1
RETURN
END
BEGIN
SET @nRet = @Nation+1
RETURN
END
GO
 
Geri
Üst Alt