Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

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

Trix_

Guest
Oyundan Çıkınca Otomatik Askıda Kalıyor Ne YApmam Lazım ACaba
 
Cevap: Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

istersen siteden askıda kurtar yap
yada bu kodu ekle account logine

CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID varchar(21),
@Password varchar(13),
@nRet smallint OUTPUT
AS
delete from currentuser where straccountid = @AccountID

--Stnq3r 2021--
declare @cnt BigInt
declare @nDays smallint

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

select @cnt = count(straccountid) from currentuser
select @nDays = count(nDays) from PREMIUM_SERVICE where straccountid = @AccountID

if @cnt > 40 and @nDays = '0'
begin
set @nRet = 0
end

if @cnt > 40 and @nDays = null
begin
set @nRet = 0
end



DECLARE @Nation tinyint
SET @Nation = 0
-- login methot--
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

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
 
Cevap: Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

Oto ÜYelik Olduğu için KoPanEl Kurmak İstemiyorum
 
Cevap: Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

DataBase Ye Gir CURRENTUSER i Sil Char Askdan Kurtulur ;)
 
Cevap: Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

levent0119 kardesim Allah razı olsun senden:D
 
Cevap: Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

HTML:
[quote="levent0119, post: 15134"]istersen siteden askıda kurtar yap
yada bu kodu ekle account logine

CREATE PROCEDURE ACCOUNT_LOGIN 
@AccountID varchar(21), 
@Password varchar(13), 
@nRet smallint OUTPUT 
AS 
delete from currentuser where straccountid = @AccountID 

--Stnq3r 2021-- 
declare @cnt BigInt 
declare @nDays smallint 

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 

select @cnt = count(straccountid) from currentuser 
select @nDays = count(nDays) from PREMIUM_SERVICE where straccountid = @AccountID 

if @cnt > 40 and @nDays = '0' 
begin 
set @nRet = 0 
end 

if @cnt > 40 and @nDays = null 
begin 
set @nRet = 0 
end 



DECLARE @Nation tinyint 
SET @Nation = 0 
-- login methot-- 
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 

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[/QUOTE]




Bu kodu yazdiktan sonra pc rest atmayı unutma :^^:
 
Cevap: Oyundan Çıkınca Otomatik Askıda Kalıyor Ve Düşmüyr

AS altına sadece bunuda yazsan olur procunu deişmeye gerek yok

delete from currentuser where straccountid = @AccountID
 
Geri
Üst Alt