Skocz do zawartości
  • 0

Problem z gui


Wiewi

Pytanie

Cześć mam do was pytanie dlaczego ten skrypt nie działa?:

command /gui:
	trigger:
	open chest with 1 rows named "nazwa" to player
	format slot 4 of player with 1 of steak named "gui"
		

Błędy w konsoli są takie:

Skript] Reloading cos.sk...
[13:33:14 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. (cos.sk, line 2: trigger:')
[13:33:14 ERROR]: 'open chest with 1 rows named "nazwa" to player' is not an entry (like 'name : value') (cos.sk, line 3: open chest with 1 rows named "nazwa" to player')
[13:33:14 ERROR]: 'format slot 4 of player with 1 of steak named "cos" to run "komenda"' is not an entry (like 'name : value') (cos.sk, line 4: format slot 4 of player with 1 of steak named "cos" to run "komenda"')
[13:33:14 INFO]: [Skript] Encountered 2 errors while reloading cos.sk!

Z góry dziekuję za odpowiedzi ;D

Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

@LjayPL789 niestety wyskakują takie błędy:

[Skript] Reloading cos.sk...
[14:50:03 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. (cos.sk, line 2: trigger:')
[14:50:03 ERROR]: 'open chest with 1 rows named "nazwa" to player' is not an entry (like 'name : value') (cos.sk, line 3: open chest with 1 rows named "nazwa" to player')
[14:50:03 ERROR]: 'format slot 4 of player with 1 of steak named "gui" to be unstealable' is not an entry (like 'name : value') (cos.sk, line 4: format slot 4 of player with 1 of steak named "gui" to be unstealable')
[14:50:03 INFO]: [Skript] Encountered 2 errors while reloading cos.sk!

Może potrzebuje jakiś pluginów? Posiadam Skript SkQuery Skellet SkRayFall i WildSkript

Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196150
Udostępnij na innych stronach

  • 0

Ty to na pewno masz dobrze wytabowane? Jeżeli skrypt wygląda tak jak w code to dodaj po jednym tabie przy open [...] i format [...].

Edytowane przez stefanik11
Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196153
Udostępnij na innych stronach

  • 0

Ok poprawiłęm z tabami skrypt wygląda tak:

command /gui:
	trigger:
		open chest with 1 rows named "nazwa" to player
		format slot 4 of player with 1 steak named "gui" to be unstealable

Lecz błędy też się pojawiają:

[Skript] Reloading cos.sk...
[15:16:39 ERROR]: Can't understand this condition/effect: format slot 4 of player with 1 steak named "gui" to be unstealable (cos.sk, line 4: format slot 4 of player with 1 steak named "gui" to be unstealable')
[15:16:39 INFO]: [Skript] Encountered 1 error while reloading cos.sk!

 

Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196155
Udostępnij na innych stronach

  • 0
format slot 4 of player with 1 of steak named "gui" to be unstealable



format slot 4 of player with 1 of steak named "gui" with lore "test" to be unstealable

Spróbuj któreś z powyższych rozwiązań. Chociaż nie ukrywam, że najlepszym sposobem byłoby użycie set slot, a potem w evencie on inventory click dokonywać akcji.

Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196164
Udostępnij na innych stronach

  • 0

@stefanik11

[Skript] Reloading cos.sk...
[16:46:43 ERROR]: Can't understand this condition/effect: format slot 4 of player with 1 of steak named "gui" to be unstealable (cos.sk, line 4: format slot 4 of player with 1 of steak named "gui" to be unstealable')
[16:46:43 INFO]: [Skript] Encountered 1 error while reloading cos.sk!

Jak użyć tego set slot?

Edytowane przez Wiewi
Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196170
Udostępnij na innych stronach

  • 0

zamiast format [...] dajesz:

set slot 4 of current inventory of player to 1 of steak named "gui"

A potem:

on inventory click:
(tab) if name of current inventory of player is not "nazwa":
(tab)(tab) stop
(tab) cancel event
#Dalej możesz sprawdzać, czy kliknięty przedmiot to w tym przypadku steak i dokonywać innych akcji

Pisane na telefonie.

Edytowane przez stefanik11
Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196174
Udostępnij na innych stronach

  • 0

@stefanik11:

[Skript] Reloading cos.sk...
[16:57:35 ERROR]: 'player' is not an item stack (cos.sk, line 4: set slot 4 of current inventory of player to 1 of steak named "gui"')
[16:57:35 ERROR]: 'player' is not an item stack (cos.sk, line 6: if name of current inventory of player is not "nazwa":')
[16:57:35 INFO]: [Skript] Encountered 2 errors while reloading cos.sk!

 

Odnośnik do komentarza
https://skript.pl/temat/29879-problem-z-gui/#findComment-196176
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ę...