Foruma hoş geldin, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

[ +captain ] Bugu Sorunu Fix | ko cuce

Konu Bilgileri

Konu Hakkında Merhaba, tarihinde Prosedür & Query Kod Paylaşımları kategorisinde kocuce tarafından oluşturulan [ +captain ] Bugu Sorunu Fix | ko cuce başlıklı konuyu okuyorsunuz. Bu konu şimdiye dek 6,677 kez görüntülenmiş, 2 yorum ve 0 tepki puanı almıştır...
Kategori Adı Prosedür & Query Kod Paylaşımları
Konu Başlığı [ +captain ] Bugu Sorunu Fix | ko cuce
Konbuyu başlatan kocuce
Başlangıç tarihi
Cevaplar
Görüntüleme
İlk mesaj tepki puanı
Son Mesaj Yazan ali1

kocuce

Kayıtlı Üye
Katılım
6 Ağu 2019
Mesajlar
235
Tepkime puanı
823
Puanları
93
SQL:
CREATE PROCEDURE WAR_CAPITAN
@UserId varchar(21),
@Nrow int
AS

DECLARE @Race int,@Nation int

Select @Race = Race From USERDATA Where strUserId = @UserId
Select @Nation = Nation From USERDATA Where strUserId = @UserId

--Ata Bin
IF @Race = 1 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 5 Where strUserId = @UserId
END
ELSE IF @Race = 2 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 6 Where strUserId = @UserId
END
ELSE IF @Race = 3 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 7 Where strUserId = @UserId
END
ELSE IF @Race = 4 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 8 Where strUserId = @UserId
END
ELSE IF @Race = 11 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 14 Where strUserId = @UserId
END
ELSE IF @Race = 12 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 15 Where strUserId = @UserId
END
ELSE IF @Race = 13 and @Nrow = 1
BEGIN
Update USERDATA Set Race = 16 Where strUserId = @UserId
END
--Attan İn
IF @Race = 5 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 1 Where strUserId = @UserId
END
ELSE IF @Race = 6 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 2 Where strUserId = @UserId
END
ELSE IF @Race = 7 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 3 Where strUserId = @UserId
END
ELSE IF @Race = 8 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 4 Where strUserId = @UserId
END
ELSE IF @Race = 14 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 11 Where strUserId = @UserId
END
ELSE IF @Race = 15 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 12 Where strUserId = @UserId
END
ELSE IF @Race = 16 and @Nrow = 2
BEGIN
Update USERDATA Set Race = 13 Where strUserId = @UserId
END


GO
 

ali1

Kayıtlı Üye
Katılım
1 Eki 2019
Mesajlar
194
Tepkime puanı
4
Puanları
0
Yaş
26
teşekkürler ko-cuce :)
 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap
+++---yyzzhhe tarzı Yorum Yazanlar Ko cuce Yönetimi Tarafından Ban Atılacaktır

Konuyu görüntüleyenler