Skocz do zawartości
  • 0

Problem z GUI 2


Wiewi

Pytanie

Cześć pamiętacie mój problem z gui znowu gui nie działa! Super! To są błędy z konsoli:
 

[15:35:21 INFO]: [Skript] Reloading pgui.sk...
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 4: set player's current inventory's slot 0 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 5: set player's current inventory's slot 1 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 6: set player's current inventory's slot 2 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 7: set player's current inventory's slot 3 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 8: set player's current inventory's slot 4 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 9: set player's current inventory's slot 5 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 10: set player's current inventory's slot 6 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 11: set player's current inventory's slot 7 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 12: set player's current inventory's slot 8 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 13: set player's current inventory's slot 9 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 14: set player's current inventory's slot 10 to diamond block named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 15: set player's current inventory's slot 11 to iron block named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 16: set player's current inventory's slot 12 to emerald block named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 17: set player's current inventory's slot 13 to coal block named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 18: set player's current inventory's slot 14 to redstone block named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 19: set player's current inventory's slot 15 to golden apple named "&6&l5"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 20: set player's current inventory's slot 16 to hay block named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 21: set player's current inventory's slot 17 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 22: set player's current inventory's slot 18 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 23: set player's current inventory's slot 19 to bookshelf named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 24: set player's current inventory's slot 20 to obsidian named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 25: set player's current inventory's slot 21 to tnt named "&6&l64"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 26: set player's current inventory's slot 22 to ender pearl named "&6&l3"')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 27: set player's current inventory's slot 26 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 28: set player's current inventory's slot 27 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 29: set player's current inventory's slot 28 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 30: set player's current inventory's slot 29 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 31: set player's current inventory's slot 30 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 32: set player's current inventory's slot 31 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 33: set player's current inventory's slot 32 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 34: set player's current inventory's slot 33 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 35: set player's current inventory's slot 34 to 160:15')
[15:35:21 ERROR]: 'player's current inventory' is not an entity type (pgui.sk, line 36: set player's current inventory's slot 35 to 160:15')
[15:35:21 ERROR]: 'player' is not an item stack (pgui.sk, line 38: if inventory name of current inventory of player is "&6&lItemy na gildie (dla Gracza):":')
[15:35:21 INFO]: [Skript] Encountered 34 errors while reloading pgui.sk!

A to skrypt:

command /itemy [<text>]:
	trigger:
		open chest with 4 rows named "&6&lItemy na gildie (dla Gracza):" to player
		set player's current inventory's slot 0 to 160:15 
		set player's current inventory's slot 1 to 160:15 
		set player's current inventory's slot 2 to 160:15 
		set player's current inventory's slot 3 to 160:15 
		set player's current inventory's slot 4 to 160:15 
		set player's current inventory's slot 5 to 160:15
		set player's current inventory's slot 6 to 160:15 
		set player's current inventory's slot 7 to 160:15 
		set player's current inventory's slot 8 to 160:15 
		set player's current inventory's slot 9 to 160:15
		set player's current inventory's slot 10 to diamond block named "&6&l64" 
		set player's current inventory's slot 11 to iron block named "&6&l64" 
		set player's current inventory's slot 12 to emerald block named "&6&l64"
		set player's current inventory's slot 13 to coal block named "&6&l64" 
		set player's current inventory's slot 14 to redstone block named "&6&l64"  
		set player's current inventory's slot 15 to golden apple named "&6&l5" 
		set player's current inventory's slot 16 to hay block named "&6&l64"
		set player's current inventory's slot 17 to 160:15
		set player's current inventory's slot 18 to 160:15
		set player's current inventory's slot 19 to bookshelf named "&6&l64" 
		set player's current inventory's slot 20 to obsidian named "&6&l64" 
		set player's current inventory's slot 21 to tnt named "&6&l64" 
		set player's current inventory's slot 22 to ender pearl named "&6&l3"
		set player's current inventory's slot 26 to 160:15
		set player's current inventory's slot 27 to 160:15 
		set player's current inventory's slot 28 to 160:15 
		set player's current inventory's slot 29 to 160:15 
		set player's current inventory's slot 30 to 160:15 
		set player's current inventory's slot 31 to 160:15 
		set player's current inventory's slot 32 to 160:15 
		set player's current inventory's slot 33 to 160:15 
		set player's current inventory's slot 34 to 160:15 
		set player's current inventory's slot 35 to 160:15 
on inventory click:
	if inventory name of current inventory of player is "&6&lItemy na gildie (dla Gracza):":
		cancel event

Proszę was bardzo o pomoc

Odnośnik do komentarza
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0

Po co utrudniasz sobie życie? Użyj TuSKe, masz tam wszystko pozabezpieczane, nikt nie wyciągnie itemów z gui.

Edytowane przez BrixNW
Poprawiam formatowanie na ciemnym stylu
Usunięty#5541

Poprawiam formatowanie na ciemnym stylu

Notatka dodana przez Usunięty#5541

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Oglądałem poradnik do TuSKe skrypt wygląda tak:

command /test [<text>]:
	trigger:
		open virtual chest inventory with size 1 named "&cGUI" to player
		format gui slot 4 of player with diamond named "&cDiax" 

A błedy wyglądają tak:

14:27:30 ERROR]: 'virtual chest inventory with size 1 named "&cGUI"' is not an entity type (pls.sk, line 3: open virtual chest inventory with size 1 named "&cGUI" to player')
[14:27:30 ERROR]: 'player with diamond' is not an item type (pls.sk, line 4: format gui slot 4 of player with diamond named "&cDiax"')
[14:27:30 INFO]: [Skript] Encountered 2 errors while reloading 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Tu masz poradnik jak take gui stworzyć 

 

command /gui:
	trigger:
		open virtual chest with 2 rows named "&fPrzykładowe GUI" to player
		format gui slot 4 of player with blue Glass named "<<1>>" with lore "&9&llore 1 linika ||&9&llore 2 linika"

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

@kijl

[20:40:40 INFO]: [Skript] Reloading moz.sk...
[20:40:40 ERROR]: 'virtual chest with 2 rows named "&fPrzyk?adowe GUI"' is not an entity type (moz.sk, line 3: open virtual chest with 2 rows named "&fPrzyk?adowe GUI" to player')
[20:40:40 ERROR]: Can't understand this condition/effect: format gui slot 4 of player with blue Glass named "<<1>>" with lore "&9&llore 1 linika ||&9&llore 2 linika" (moz.sk, line 4: format gui slot 4 of player with blue Glass named "<<1>>" with lore "&9&llore 1 linika ||&9&llore 2 linika"')
[20:40:40 INFO]: [Skript] Encountered 2 errors while reloading moz.sk!

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Teraz wyświetla mi taki błąd

[21:16:45 INFO]: [Skript] Reloading pgui.sk...
[21:16:45 ERROR]: 'chest with 4 row named "&6&lItemy na gildie (dla Gracza):"' is not an entity type (pgui.sk, line 3: open chest with 4 row named "&6&lItemy na gildie (dla Gracza):" to player')
[21:16:45 ERROR]: #!#! 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
14 minut temu, Wiewi napisał:

Teraz wyświetla mi taki błąd


[21:16:45 INFO]: [Skript] Reloading pgui.sk...
[21:16:45 ERROR]: 'chest with 4 row named "&6&lItemy na gildie (dla Gracza):"' is not an entity type (pgui.sk, line 3: open chest with 4 row named "&6&lItemy na gildie (dla Gracza):" to player')
[21:16:45 ERROR]: #!#! 

 

Mnie się wydaję, że masz coś nie tak z pluginem Skript, mi ten skrypt normalnie działa.

Odnośnik do komentarza
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ę...