Skocz do zawartości
  • 0

Co w tych arg jest zle.


Kiler512

Pytanie

Pomoze ktos ? Co w tych  argumentach jest zle  ? prosze o szybka pomoc! 

KOD:

command /craftnarko [<text>]:
        trigger:
                if arg 1 is not set: 
                open chest with 2 rows named "&e&k;;&6CRAFT&aNARKO&e&k;;" to player
                wait 3 tick
                format slot 0 of player with 1 of gray stained glass pane named "" to close
                format slot 6 of player with 1 of gray stained glass pane named "" to close
                format slot 3 of player with 1 of paper named "&a&lAMFETAMINA" with lore "&7&lKliknij, aby zobaczyc crafting." to close
                format slot 4 of player with 1 of paper named "&a&lHEROINA" with lore "&7&lKliknij, aby zobaczyc crafting." to close
                format slot 5 of player with 1 of paper named "&a&lKOKAINA" with lore "&7&lKliknij, aby zobaczyc crafting." to close
                format slot 7 of player with 1 of gray stained glass pane named "" to close
                format slot 8 of player with 1 of gray stained glass pane named "" to close
                format slot 2 of player with 1 of gray stained glass pane named "" to close
                format slot 1 of player with 1 of gray stained glass pane named "" to close
                format slot 9 of player with 1 of gray stained glass pane named "" to close
                format slot 10 of player with 1 of gray stained glass pane named "" to close
                format slot 11 of player with 1 of gray stained glass pane named "" to close
                format slot 12 of player with 1 of gray stained glass pane named "" to close
                format slot 13 of player with 1 of shears named "&a&lALKOMAT" with lore "&7&lKliknij, aby zobaczyc crafting." to close
                format slot 14 of player with 1 of gray stained glass pane named "" to close
                format slot 15 of player with 1 of gray stained glass pane named "" to close
                format slot 16 of player with 1 of gray stained glass pane named "" to close
                format slot 17 of player with 1 of gray stained glass pane named "" to close
       if arg 1 is "amfa":
                open chest with 3 rows named "&a&lAMFETAMINA" to player
                wait 5 tick
                format slot 2 of player with 1 of paper named "&f&lPAPIER" to close
                format slot 3 of player with 1 of sugar named "&f&lCUKIER" to close
                format slot 4 of player with 1 of paper named "&f&lPAPIER" to close
                format slot 15 of player with 1 of paper named "&a&lAMFETAMINA" to close
                format slot 26 of player with 1 of black wool named "&7Powrot" to close
       if arg 1 is "hero":
                open chest with 3 rows named "&a&lHEROINA" to player
                format slot 2 of player with 1 of paper named "&f&lPAPIER" to close
                format slot 3 of player with 1 of nether wart named "&c&lBRODAWKA" to close
                format slot 4 of player with 1 of paper named "&f&lPAPIER" to close
                format slot 15 of player with 1 of paper named "&a&lHEROINA" to close
                format slot 26 of player with 1 of black wool named "&7Powrot" to close
        if arg 1 is "koka":
                open chest with 3 rows named "&a&lKOKAINA" to player
                format slot 2 of player with 1 of paper named "&f&lPAPIER" to close
                format slot 3 of player with 1 of cactus named "&a&lKAKTUS" to close
                format slot 4 of player with 1 of paper named "&f&lPAPIER" to close
                format slot 15 of player with 1 of paper named "&a&lKOKAINA" to close
                format slot 26 of player with 1 of black wool named "&7Powrot" to close

Odnośnik do komentarza
https://skript.pl/temat/22121-co-w-tych-arg-jest-zle/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

                if arg 1 is not set: 
                open chest with 2 rows named "&e&k;;&6CRAFT&aNARKO&e&k;;" to player

 

zle wytabowane, i jak raz sprawdzasz if, to potem else if

Odnośnik do komentarza
https://skript.pl/temat/22121-co-w-tych-arg-jest-zle/#findComment-150882
Udostępnij na innych stronach

  • 0
14 godzin temu, yooniks napisał:

                if arg 1 is not set: 
                open chest with 2 rows named "&e&k;;&6CRAFT&aNARKO&e&k;;" to player

 

zle wytabowane, i jak raz sprawdzasz if, to potem else if

wcale nie musi "else if" może samym if'em i też będzie poprawnie.

Odnośnik do komentarza
https://skript.pl/temat/22121-co-w-tych-arg-jest-zle/#findComment-150927
Udostępnij na innych stronach

  • 0

command /craftnarko [<text>]:
    trigger:
        if arg 1 is not set:
                        open chest with 2 rows named "&e&k;;&6CRAFT&aNARKO&e&k;;" to player
                        wait 3 tick
                        format slot 0 of player with 1 of gray stained glass pane named "" to close

 

Dobrze ? 

 

Odnośnik do komentarza
https://skript.pl/temat/22121-co-w-tych-arg-jest-zle/#findComment-150976
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...