[SK/HELP] Sign Line Parsed As Item

Ben Cenabet Miyim?

  • Evet

    Kullanılan: 5 55.6%
  • Bence de

    Kullanılan: 0 0.0%
  • Aynen

    Kullanılan: 1 11.1%
  • Helal

    Kullanılan: 3 33.3%

  • Kullanılan toplam oy
    9

BraveHero

Dobloyu n'aptın
En iyi cevaplar
1
İvet,
Yine ben,
Yine bir hata.

{_item} kısmı parse hatası veriyor.
Örneğin log, log:1, oak log vs yazdığımda bu şey, bir den fazla iteme eşit geliyor diyor.
Kod:
set {_item} to line 3 of the clicked block parsed as item
            if player have {_item}:
                send "&a[MAĞAZA] Eşya satma başarılı! &2&l+%{_x}% Para"
                add {_x} to player's balance
                stop
            send "&c[MAĞAZA] Eşyan yetersiz!"
@Blueyescat @Bartuzen :C
 

Bartuzen

Bedrock Kaşifi
En iyi cevaplar
0
PHP:
set {_item} to line 3 of the clicked block
set {_item} to "%{_item}%" parsed as item
İlk satırı böyle yapmayı dene.
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
PHP:
set {_item} to "diamond" parsed as itemtype
set {_amount} to "16" parsed as integer
#set {_amount} to 16

if player have {_amount} of {_item}:
Kod bu şekildeyse olur. Tabelada yazanı bilsek :/
 

BraveHero

Dobloyu n'aptın
En iyi cevaplar
1
PHP:
set {_item} to "diamond" parsed as itemtype
set {_amount} to "16" parsed as integer
#set {_amount} to 16

if player have {_amount} of {_item}:
Kod bu şekildeyse olur. Tabelada yazanı bilsek :/

Kod:
if line 2 of the clicked block contains "&aSat":
            set {_amount} to line 2 of the clicked block
            replace all "&aAl" in {_amount} with ""
            set {_amount} to {_amount} parsed as number
            set {_x} to line 4 of the clicked block parsed as number
            set {_item} to line 3 of the clicked block parsed as itemtype
            if player has {_amount} of {_item}:
                send "&a[MAĞAZA] Eşya satma başarılı! &2&l+%{_x}% Para"
                add {_x} to player's balance
                remove {_amount} of {_item} from player
                stop
            send "&c[MAĞAZA] Eşyan yetersiz!"

EDIT: Şimdi farkettim. Al ve sat'ın kodları karışmış :(
Replace sat yerine replace al yazmışım :C
 
Üst