Çözüldü Burada ne yanlış?

  • Konuyu Başlatan Konuyu Başlatan meerzean
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.047
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

meerzean

Bir Kömür Göründü Kaptanım!
Katılım
30 Ocak 2020
Mesajlar
141
Elmaslar
25
Puan
2.330
Yaş
23
Minecraft
meerzean

Discord:

meerzean#6329

Merhabalar, Bir kod üstünde çalışıyorum fakat şöyle bir sorunum var:
arg-2'nin sayıp olup olmadığını anlayamıyorum. Kod:

Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    set {sayi} to arg-2 parsed as number
                    if {sayi} is number:
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player
 
{sayi} değişkenini zaten zorla sayı olarak atıyorsun if else ile değişkenin boş ya da boş olmadığını kontrol etmeyi dener misin ?
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    if arg-2 is a number:
                        set {sayi} to arg-2 parsed as number
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player
Dener misiniz
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    if arg-2 is a number:
                        set {sayi} to arg-2 parsed as number
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player
Dener misiniz
Sayı olsada olmasada bu bir sayı değil diyor.
Merhabalar, Bir kod üstünde çalışıyorum fakat şöyle bir sorunum var:
arg-2'nin sayıp olup olmadığını anlayamıyorum. Kod:

Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    set {sayi} to arg-2 parsed as number
                    if {sayi} is number:
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player

Kod ile yazdırıyorum sabit 1 diyor değişmiyor.
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    if arg-2 is a number:
                        set {sayi} to arg-2 parsed as number
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    if arg-2 is not a number:
                        send "&7Bu bir &esayı &7değil." to player
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    if arg-2 is a number:
                        set {sayi} to arg-2 parsed as number
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    if arg-2 is not a number:
                        send "&7Bu bir &esayı &7değil." to player
Hala aynı hatayı alıyorum
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    set {sayi} to arg-2 parsed as number
                    if {sayi} is set:
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player

Dener misin ?
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    set {sayi} to arg-2 parsed as number
                    if {sayi} is set:
                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                        add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player

Dener misin ?
42c775fb574b0f8183b0d1a2c08e765c.png

gene olmadı
 
Kod:
command /icoin [<text>] [<int>] [<player>]:

    trigger:

        if arg 1 is set:

            if arg 1 is "ver":

                if player has permission "icoin.yetki":

                    set {sayi} to arg-2 parsed as number

                    if {sayi} is set:

                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player

                        add {sayi} to {icoin::%arg-3%}

                    else:

                        send "&7Bu bir &esayı &7değil." to player
 
Kod:
command /icoin [<text>] [<int>] [<player>]:

    trigger:

        if arg 1 is set:

            if arg 1 is "ver":

                if player has permission "icoin.yetki":

                    set {sayi} to arg-2 parsed as number

                    if {sayi} is set:

                        send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player

                        add {sayi} to {icoin::%arg-3%}

                    else:

                        send "&7Bu bir &esayı &7değil." to player
Çalışmadı
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if arg 2 is set:
                    if arg 2 is a number:
                        if player has permission "icoin.yetki":
                                set {sayi} to arg-2 parsed as number
                                send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                                add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player
                else:
                    send "&7Bir &esayı &7girmelisin." to player

Bunu bir deneyin :D
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if arg 2 is set:
                    if arg 2 is a number:
                        if player has permission "icoin.yetki":
                                set {sayi} to arg-2 parsed as number
                                send "&e%arg-3% &7adlı oyuncuya &e%arg-2% &7kredi verdiniz." to player
                                add {sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player
                else:
                    send "&7Bir &esayı &7girmelisin." to player

Bunu bir deneyin :D
Test ediyormusunuz bunları olmuyor
 
Kod:
command /icoin [<text>] [<text>] [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "ver":
                if player has permission "icoin.yetki":
                    set {_sayi} to arg-2 parsed as number
                    if {_sayi} is set:
                        send "&e%arg-3% &7adlı oyuncuya &e%{_sayi}% &7kredi verdiniz." to player
                        add {_sayi} to {icoin::%arg-3%}
                    else:
                        send "&7Bu bir &esayı &7değil." to player

Buyrun efendim.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl