Skocz do zawartości
  • 0

błąd


PESA_GAMING_COM

Pytanie

To zaczęło się kilka dni temu wcześniej wszystko działało:

błąd:

"set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2' is not an entry (like 'name : value') (cheat-items.sk, line 18: set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2')"

i tak ze wszystkim, na prośbę podam też kod.

 

Odnośnik do komentarza
https://skript.pl/temat/44648-b%C5%82%C4%85d/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
2 minuty temu, PESA_GAMING_COM napisał:

To zaczęło się kilka dni temu wcześniej wszystko działało:

błąd:

"set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2' is not an entry (like 'name : value') (cheat-items.sk, line 18: set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2')"

i tak ze wszystkim, na prośbę podam też kod.

 

Pokaż twój kod.

Podaj również:

  • wersję serwera
  • silnik serwera
  • wersję Skripta
  • listę dodatków do Skripta wraz z wersjami
  • błędy przy przeładowaniu skryptu
  • błędy w konsoli
Odnośnik do komentarza
https://skript.pl/temat/44648-b%C5%82%C4%85d/#findComment-280200
Udostępnij na innych stronach

  • 0

1.16.2, spigot, 2.5, SkBee 1.9.1, SQuery nwm,  
błędy z konsoli:

>sk reload cheat-items
[21:58:46] [Server thread/INFO]: [Skript] Reloading cheat-items.sk...
[21:58:46] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (cheat-items.sk, line 3: trigger:')
[21:58:46] [Server thread/ERROR]: 'open chest with 6 rows named "&3Przedmioty" to player' is not an entry (like 'name : value') (cheat-items.sk, line 4: open chest with 6 rows named "&3Przedmioty" to player')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 0 to iron sword named "&3Szmaragdowy miecz" with custom model data 3' is not an entry (like 'name : value') (cheat-items.sk, line 6: set player's current inventory's slot 0 to iron sword named "&3Szmaragdowy miecz" with custom model data 3')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 1 to iron pickaxe named "&3Szmaragdowy kilof" with custom model data 3' is not an entry (like 'name : value') (cheat-items.sk, line 7: set player's current inventory's slot 1 to iron pickaxe named "&3Szmaragdowy kilof" with custom model data 3')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 2 to iron axe named "&3Szmaragdowa siekiera" with custom model data 3' is not an entry (like 'name : value') (cheat-items.sk, line 8: set player's current inventory's slot 2 to iron axe named "&3Szmaragdowa siekiera" with custom model data 3')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 3 to iron shovel named "&3Szmaragdowa lopata" with custom model data 3' is not an entry (like 'name : value') (cheat-items.sk, line 9: set player's current inventory's slot 3 to iron shovel named "&3Szmaragdowa lopata" with custom model data 3')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 4 to iron hoe named "&3Szmaragdowa motyka" with custom model data 3 with lore "&2To troche bezuzyteczne zrob zelazna"' is not an entry (like 'name : value') (cheat-items.sk, line 10: set player's current inventory's slot 4 to iron hoe named "&3Szmaragdowa motyka" with custom model data 3 with lore "&2To troche bezuzyteczne zrob zelazna"')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 9 to stick named "&2Zamszony patyk" with custom model data 1' is not an entry (like 'name : value') (cheat-items.sk, line 15: set player's current inventory's slot 9 to stick named "&2Zamszony patyk" with custom model data 1')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 10 to bone named "&6Skamienialosc"' is not an entry (like 'name : value') (cheat-items.sk, line 16: set player's current inventory's slot 10 to bone named "&6Skamienialosc"')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 18 to blaze spawn egg named "&5Rubin" with custom model data 1' is not an entry (like 'name : value') (cheat-items.sk, line 17: set player's current inventory's slot 18 to blaze spawn egg named "&5Rubin" with custom model data 1')
[21:58:46] [Server thread/ERROR]: 'set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2' is not an entry (like 'name : value') (cheat-items.sk, line 18: set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2')
[21:58:46] [Server thread/ERROR]: 'stop' is not an entry (like 'name : value') (cheat-items.sk, line 19: stop')
[21:58:46] [Server thread/INFO]: [Skript] Encountered 11 errors while reloading cheat-items.sk!

kod:

command /cheat [<text>]:
    #permission: cheat.owner
    trigger:
    open chest with 6 rows named "&3Przedmioty" to player
		#Początek szmaragdów
    set player's current inventory's slot 0 to iron sword named "&3Szmaragdowy miecz" with custom model data 3
    set player's current inventory's slot 1 to iron pickaxe named "&3Szmaragdowy kilof" with custom model data 3
    set player's current inventory's slot 2 to iron axe named "&3Szmaragdowa siekiera" with custom model data 3
    set player's current inventory's slot 3 to iron shovel named "&3Szmaragdowa lopata" with custom model data 3
    set player's current inventory's slot 4 to iron hoe named "&3Szmaragdowa motyka" with custom model data 3 with lore "&2To troche bezuzyteczne zrob zelazna"
    #set player's current inventory's slot 5 to 
   #set player's current inventory's slot 6 to 
    #set player's current inventory's slot 7 to 
    #set player's current inventory's slot 8 to 
    set player's current inventory's slot 9 to stick named "&2Zamszony patyk" with custom model data 1
    set player's current inventory's slot 10 to bone named "&6Skamienialosc"
    set player's current inventory's slot 18 to blaze spawn egg named "&5Rubin" with custom model data 1
    set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2
    stop

 

Odnośnik do komentarza
https://skript.pl/temat/44648-b%C5%82%C4%85d/#findComment-280215
Udostępnij na innych stronach

  • 0
2 minuty temu, PESA_GAMING_COM napisał:

kod:



command /cheat [<text>]:
    #permission: cheat.owner
    trigger:
    open chest with 6 rows named "&3Przedmioty" to player
		#Początek szmaragdów
    set player's current inventory's slot 0 to iron sword named "&3Szmaragdowy miecz" with custom model data 3
    set player's current inventory's slot 1 to iron pickaxe named "&3Szmaragdowy kilof" with custom model data 3
    set player's current inventory's slot 2 to iron axe named "&3Szmaragdowa siekiera" with custom model data 3
    set player's current inventory's slot 3 to iron shovel named "&3Szmaragdowa lopata" with custom model data 3
    set player's current inventory's slot 4 to iron hoe named "&3Szmaragdowa motyka" with custom model data 3 with lore "&2To troche bezuzyteczne zrob zelazna"
    #set player's current inventory's slot 5 to 
   #set player's current inventory's slot 6 to 
    #set player's current inventory's slot 7 to 
    #set player's current inventory's slot 8 to 
    set player's current inventory's slot 9 to stick named "&2Zamszony patyk" with custom model data 1
    set player's current inventory's slot 10 to bone named "&6Skamienialosc"
    set player's current inventory's slot 18 to blaze spawn egg named "&5Rubin" with custom model data 1
    set player's current inventory's slot 19 to diamond sword named "&4Rubinowy miecz" with custom model data 2
    stop

Cały twój kod jest źle wytabowany. Musisz to poprawić.

W twoim przypadku wystarczy, że od linijki otwierającej skrzynkę przesuniesz wszystko o jeden znak tabulacji w prawo.

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/44648-b%C5%82%C4%85d/#findComment-280216
Udostępnij na innych stronach

  • 0

ok, dziękuje akurat działa ale wcześniej chyba coś popsułem bo najpierw pisało żebym dał 4 spacje potem tabulację, potem 17 błędów,

działa :)

do zamknięcia

Edytowane przez PESA_GAMING_COM
Odnośnik do komentarza
https://skript.pl/temat/44648-b%C5%82%C4%85d/#findComment-280217
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ę...