www.onlymyko.com                                      ko cuce

ko cuce                                      ko cuce

ko cuce                                      ko cuce

[ +captain ] Bugu Sorunu Fix | ko cuce

[XFB] 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,657 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

Normal Üye
Normal Üye
Katılım
6 Ağu 2019
Mesajlar
235
Tepkime puanı
815
Online Süresi
7h 9m
Puanları
93
Ofline
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
 

Selcuk55760

Yeni Üye
Normal Üye
Katılım
1 Eyl 2019
Mesajlar
300
Tepkime puanı
5
Online Süresi
1m
Puanları
18
Yaş
31
Ofline
teşekkürlerrrrrrrrr
 

ali1

Yeni Üye
Normal Üye
Katılım
1 Eki 2019
Mesajlar
194
Tepkime puanı
4
Online Süresi
0
Puanları
0
Yaş
26
Ofline
teşekkürler ko-cuce :)
 
Üst