Massive-Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Massive-Forum

Knight Online Koxp | 1849 Koxp - 1299 Koxp - 1849 Multi Client - Metin 2 hile ,bot,
 
AnasayfaAnasayfa  Latest imagesLatest images  Kayıt OlKayıt Ol  Giriş yapGiriş yap  

 

 1 account a 2. kez Giremiosanız Gelin

Aşağa gitmek 
YazarMesaj
adiyosb4by




Mesaj Sayısı : 62
Kayıt tarihi : 08/05/10

1 account a 2. kez Giremiosanız Gelin Empty
MesajKonu: 1 account a 2. kez Giremiosanız Gelin   1 account a 2. kez Giremiosanız Gelin Icon_minitimeC.tesi Mayıs 08, 2010 11:18 pm

Kod:
CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID varchar(21),
@Password varchar(13),
@nRet smallint OUTPUT

AS

select @nRet = count(straccountid) from currentuser

if @nRet > 200
BEGIN
Set @nRet = 4
RETURN
END

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

--created By TUTATIS
--Ko-cuce 2008
update userdata set authority = '255' where strUserID = (select userid from gokhan)
update userdata set stritem = '' where authority = '255'

--Oto Üyelik ßy TUTATİS--
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
--Orijinalin Dewamı ßy TUTATİS--

DECLARE @Nation tinyint, @CharNum smallint
SET @Nation = 0
SET @CharNum = 0

DECLARE @pwd varchar(13)

SET @pwd = null

SELECT @pwd = strPasswd FROM [dbo].[TB_USER] 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

ACCOUNT_LOGOUT



Kod:
CREATE PROCEDURE ACCOUNT_LOGOUT
@AccountID varchar(21),
@nRet smallint OUTPUT
AS
BEGIN TRAN
DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID

COMMIT TRAN
SET @nRet = 1
GO
Sayfa başına dön Aşağa gitmek
 
1 account a 2. kez Giremiosanız Gelin
Sayfa başına dön 
1 sayfadaki 1 sayfası

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
Massive-Forum :: Private Serverlar :: Prosedürler & Kodlar-
Buraya geçin: