Skocz do zawartości
  • 0

Nie działające linijki z give


TermitCG

Pytanie

Witam.

Coś zepsułem z moim kodem.

Są to zapewne linijki z give.

Czy ktoś podeśle naprawiony kod?

commmand "/kit"
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 1 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "/kitywguigracz"
		format slot 2 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "/kitywguivip"
		format slot 3 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "/kitywguisvip"
		format slot 4 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "/kitywguisponsor"
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
commmand "/kitywguigracz"
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 enderchest named "&7&lKIT GRACZ" to player
commmand "/kitywguivip"
	if player has permission "kitywgui.vip"
		trigger:
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 4 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond leggins of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 5 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
	else:
		send "&4Brak Permisji!" to player

To jest coś z tabami...

Odnośnik do komentarza
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
commmand /kit
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 1 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "/kitywguigracz"
		format slot 2 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "/kitywguivip"
		format slot 3 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "/kitywguisvip"
		format slot 4 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "/kitywguisponsor"
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
commmand /kitywguigracz
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 enderchest named "&7&lKIT GRACZ" to player
commmand /kitywguivip
	trigger:
		if player has permission "kitywgui.vip"
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 4 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond leggins of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 5 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
	else:
		send "&4Brak Permisji!" to player

 

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

  • 0
21 minut temu, TermitCG napisał:

Witam.

Coś zepsułem z moim kodem.

Są to zapewne linijki z give.

Czy ktoś podeśle naprawiony kod?


commmand "/kit"
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 1 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "/kitywguigracz"
		format slot 2 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "/kitywguivip"
		format slot 3 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "/kitywguisvip"
		format slot 4 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "/kitywguisponsor"
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
commmand "/kitywguigracz"
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 enderchest named "&7&lKIT GRACZ" to player
commmand "/kitywguivip"
	if player has permission "kitywgui.vip"
		trigger:
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 4 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond leggins of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 5 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
	else:
		send "&4Brak Permisji!" to player

To jest coś z tabami...

A jakie masz błędy? Podaj dokładne linijki.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

29 błędów xD

Wszystko z give

 

Spoiler
W dniu 3.08.2019 o 11:26, Helios1993 napisał:


commmand /kit
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 1 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "/kitywguigracz"
		format slot 2 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "/kitywguivip"
		format slot 3 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "/kitywguisvip"
		format slot 4 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "/kitywguisponsor"
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
commmand /kitywguigracz
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 enderchest named "&7&lKIT GRACZ" to player
commmand /kitywguivip
	trigger:
		if player has permission "kitywgui.vip"
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 4 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond leggins of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 5 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
	else:
		send "&4Brak Permisji!" to player

 

 

Helios

źle 😠

 

Spoiler
Cytat


[11:38:20 INFO]: Mati_08151 issued server command: /sk reload all
sk reload all
[11:40:54 INFO]: [Skript] Reloading the config and all scripts...
[11:40:54 INFO]: Loaded a total of 11504 english aliases
[11:40:54 WARN]: There are no aliases defined for the following ids: 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 409, 410, 411, 412, 413, 414, 415, 416, 423, 424, 425, 427, 428, 429, 430, 431
[11:40:54 ERROR]: '"&6Gracz &c%player% &6wylogowal sie podczas walki!"' is not a text (antilog.sk, line 36: broadcast "&6Gracz &c%player% &6wylogowal sie podczas walki!"')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 1 tab (kitywgui.sk, line 2: trigger:')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 3: open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 4: format slot 1 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "/kitywguigracz"')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 5: format slot 2 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "/kitywguivip"')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 6: format slot 3 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "/kitywguisvip"')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 7: format slot 4 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "/kitywguisponsor"')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 8: format slot 5 of player with 1 of white glass pane named " " to be unstealable')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 9: format slot 6 of player with 1 of white glass pane named " " to be unstealable')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 1 tab (kitywgui.sk, line 11: trigger:')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 12: give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 13: give 1 boat named "&7&lKIT GRACZ" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 14: give 1 enderchest named "&7&lKIT GRACZ" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 1 tab (kitywgui.sk, line 16: trigger:')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 17: if player has permission "kitywgui.vip"')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 18: give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 19: give 1 diamond sword of fire aspect 4 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 20: give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 21: give 1 diamond helmet of protection 5 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 22: give 1 diamond chestplate of protection 5 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 23: give 1 diamond leggins of protection 5 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 24: give 1 diamond boots of protection 5 named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 25: give 3 enchanted golden apple named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (kitywgui.sk, line 26: give 5 golden apple named "&e&lKIT VIP" to player')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 1 tab (kitywgui.sk, line 27: else:')
[11:40:54 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (kitywgui.sk, line 28: send "&4Brak Permisji!" to player')
[11:40:54 ERROR]: invalid line - all code has to be put into triggers (kitywgui.sk, line 1: commmand /kit')
[11:40:54 ERROR]: invalid line - all code has to be put into triggers (kitywgui.sk, line 10: commmand /kitywguigracz')
[11:40:54 ERROR]: invalid line - all code has to be put into triggers (kitywgui.sk, line 15: commmand /kitywguivip')
[11:40:54 WARN]: Possible name conflict of variables {man.sv::*} and {man.sv::%player%} (there might be more conflicts). (man.sk, line 76: loop {man.sv::*}:')
[11:40:54 WARN]: Possible name conflict of variables {man.sv::%loop-index%} and {man.sv::*} (there might be more conflicts). (man.sk, line 77: set {man.sv::%loop-index%} to false')
[11:40:54 INFO]: Loaded 4 scripts with a total of 17 triggers and 6 commands in 0.36 seconds
[11:40:54 INFO]: [Skript] Encountered 29 errors while reloading the config and all scripts!

 

To są błędy

Mam tez inne skrypty

 

Usunięty#5541

Łączę.

Notatka dodana przez Usunięty#5541

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
commmand /kit:
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 1 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "/kitywguigracz"
		format slot 2 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "/kitywguivip"
		format slot 3 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "/kitywguisvip"
		format slot 4 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "/kitywguisponsor"
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
commmand /kitywguigracz:
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 enderchest named "&7&lKIT GRACZ" to player
commmand /kitywguivip:
	trigger:
		if player has permission "kitywgui.vip":
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 4 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond leggins of protection 5 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 5 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
	else:
		send "&4Brak Permisji!" to player

to zadziała, wcześniej nie zauważyłem, że nie było w skrypcie : po komendach

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

  • 0

xDDD Nie zauważyłem. Komende cały czas wykonuje serwer, nie gracz. Co zrobić?

 

 

do zamkniecia

Edytowane przez TermitCG
Jednak nie...
Usunięty#5541

Jeżeli ostatni post w temacie należy do ciebie, edytuj go zamiast dodawać kolejny. Łącze posty.

Notatka dodana przez Usunięty#5541

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ę...