Skocz do zawartości
  • 0

co jest nie tak


innos
 Udostępnij

Pytanie

co tu jest nie tak?

 

command /give [<item>] [<integer>] [<Player>]:
    permission: give.use
    permission message: &cNie masz wystarczajacych uprawnien!
    trigger:
        arg 1 is set:
            arg 2 is set:
                arg 3 is set:
                    arg 3 is online:
                        give arg 1 arg 2 to arg 3
                        send "&cPomyslnie nadano item %arg 2% %arg 1%" to player
                    else:
                        send "&cTen gracz jest offline" to player
                else:
                    give arg 1 %arg 2 to player
                    send "&cPomyslnie nadano item %arg 2% %arg 1%" to player
            else:
                send "&cPoprawne uzycie: /give <item> <gracz>" to player
        else:
            send "&cPoprawne uzycie: /give <item> <gracz>" to player

[00:27:44 ERROR]: [Skript] 'argument(s)' cannot be used if the command has multiple arguments. Use 'argument 1', 'argument 2', etc. instead (#4 - xd.sk, line 9: give arg 1 arg 2 to arg 3')
[00:27:44 ERROR]: [Skript] 'arg 1 %arg 2' can't be added to a player because the former is neither an item type, an inventory nor an experience point (#4 - xd.sk, line 14: give arg 1 %arg 2 to player')

 

Edytowane przez Taq
Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość ZiemniaQ

Masz złą konstrukcję give

give [ilosc] of [item] of [enchant - dodatkowo] [wartość enchantu] named [nazwa - dodatkowo] with lore [lore - dodatkowo] to [gracz/ekwipunek]

Np.

give 1 of potato of unbreaking 10, knockback 100 named "&6&lZiemniak" with lore "pyrka" to player

Lub jak w twoim przypadku:

give arg 2 of arg 1 to arg 3

Oraz:

give arg 2 of arg 1 to player

Edytowane przez ZiemniaQ
Ziemniaki
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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