Skocz do zawartości
  • 0

Wywala błędy i nie działa komenda


Pytanie

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Człowieku! Ty żeś całkiem zepsuł ten skrypt -.- zaraz poprawie

 

Spoiler

variables:
	{own.cub.%player%} = true

command /cub [<text>] [<text>]:
	trigger:
		if arg 1 is "stworz":
			if arg 2 is "maly":
				if {own.cub.%player%} is false:
					if player has 1 bedrock:
						set {own.cub.%player%} to true
						remove 1 bedrock from player
						wait 3 second
						execute console command "pex user %player% add worldedit.*"
						execute console command "pex user %player% add worldguard.*"
						execute player command "//pos1"
						execute player command "//pos2"
						execute player command "//expand 32 n"
						execute player command "//expand 32 s"
						execute player command "//expand 32 w"
						execute player command "//expand 32 e"
						execute player command "//walls 44:1"
						execute player command "//expand vert"
						execute player command "/rg define %player% %player%"
						execute player command "/rg flag %player% build deny"
						execute player command "/rg flag %player% use deny"
						execute player command "/rg flag %player% chest-access deny"
						execute console command "pex user %player% remove worldedit.*"
						execute console command "pex user %player% remove worldguard.*"
						loop 75 times:
							send ""
						send "&2[Szescienna Kraina] &eStworzyles teren &emały &eo wymiarach &464x64 &e!"
					else:
						send "&2[Szescienna Kraina] &eNie posiadasz 1 cubmakera!"
				else:
					send "&2[Szescienna Kraina] &ePosiadasz juz teren!"
			if arg 2 is "sredni":
				if {own.cub.%player%} is false:
					if player has 2 bedrock:
						set {own.cub.%player%} to true
						remove 2 bedrock from player
						wait 3 second
						execute console command "pex user %player% add worldedit.*"
						execute console command "pex user %player% add worldguard.*"
						execute player command "//pos1"
						execute player command "//pos2"
						execute player command "//expand 64 n"
						execute player command "//expand 64 s"
						execute player command "//expand 64 w"
						execute player command "//expand 64 e"
						execute player command "//walls 44:1"
						execute player command "//expand vert"
						execute player command "/rg define %player% %player%"
						execute player command "/rg flag %player% build deny"
						execute player command "/rg flag %player% use deny"
						execute player command "/rg flag %player% chest-access deny"
						execute console command "pex user %player% remove worldedit.*"
						execute console command "pex user %player% remove worldguard.*"
						loop 75 times:
							send ""
						send "&2[Szescienna Kraina] &eStworzyles teren &eśredni &eo wymiarach &4128x128 &e!"
					else:
						send "&2[Szescienna Kraina] &eNie posiadasz 2 cubmaker'ów"
				else:
					send "&2[Szescienna Kraina] &ePosiadasz juz teren!"
			if arg 2 is "duzy":
				if {own.cub.%player%} is false:
					if player has 3 bedrock:
						set {own.cub.%player%} to true
						remove 3 bedrock from player
						wait 3 second
						execute console command "pex user %player% add worldedit.*"
						execute console command "pex user %player% add worldguard.*"
						execute player command "//pos1"
						execute player command "//pos2"
						execute player command "//expand 128 n"
						execute player command "//expand 128 s"
						execute player command "//expand 128 w"
						execute player command "//expand 128 e"
						execute player command "//walls 44:1"
						execute player command "//expand vert"
						execute player command "/rg define %player% %player%"
						execute player command "/rg flag %player% build deny"
						execute player command "/rg flag %player% use deny"
						execute player command "/rg flag %player% chest-access deny"
						execute console command "pex user %player% remove worldedit.*"
						execute console command "pex user %player% remove worldguard.*"
						loop 75 times:
							send ""
						send "&2[Szescienna Kraina] &eStworzyles teren &eduży &eo wymiarach &4256x256 &e!"
					else:
						send "&2[Szescienna Kraina] &eNie posiadasz 3 cubmaker'ów"
				else:
					send "&2[Szescienna Kraina] &ePosiadasz juz teren!"
		if arg 1 is "dodaj":
			execute console command "pex user %player% add worldedit.*"
			execute console command "pex user %player% add worldguard.*"
			execute player command "rg %player% addowner %argument 2%"
			execute console command "pex user %player% remove worldedit.*"
			execute console command "pex user %player% remove worldguard.*"
			send "&2[Szescienna Kraina] &eDodałeś gracza &4%argument 2% &edo swojego cuboida!"
		if arg 1 is "usun":
			execute console command "pex user %player% add worldedit.*"
			execute console command "pex user %player% add worldguard.*"
			execute player command "rg %player% removeowner %argument 2%"
			execute console command "pex user %player% remove worldedit.*"
			execute console command "pex user %player% remove worldguard.*"
			send "&2[Szescienna Kraina] &eUsunąłeś gracza &4%argument 2% &eze swojego cuboida!"
		if arg 1 is "pomoc":
			if arg 2 is not set:
				send "&e=== Cuboid Plugin by MisterPawlak ==="
				send "&2Wymagania do stworzenia cuboida:"
				send "&eMały > 1 cubmaker"
				send "&eŚredni > 2 cubmaker'y"
				send "&eDuży > 3 cubmaker'y"
				send "&2Komendy:"
				send "&e/cub stworz <rozmiar> &r- &2Tworzy cuboid."
				send "&e/cub dodaj <nick_gracza> &r- &2Dodaje gracza do cuboida."
				send "&e/cub usun <nick_gracza> &r- &2Usuwa gracza z cuboida."
				send "&2Cubmakery dropią z bossów lub można kupić je w sklepie (/sklep). Jeden Cubmaker otrzymujesz na starcie gry!"
				send "&2Maksymalnie możesz posiadać jeden cuboid (rozmiar nie ma znaczenia #podtekst!"

 

Pomogłem? Liczę na like ;) 

Edytowane przez Polski Sześcian
Musiałem zmienić bo strasznie długie to było.
Odnośnik do komentarza
https://skript.pl/temat/18601-wywala-b%C5%82%C4%99dy-i-nie-dzia%C5%82a-komenda/#findComment-127012
Udostępnij na innych stronach

  • 0

1. Nie wyTABowałeś dobrze skryptu
2. Po "if {own.cub.%player%} is false" nie dałeś dwukropka
3. Dodałem (ode mnie):
 

				else:
					send "&2[Szescienna Kraina] &ePosia
żeby lepiej działało.
Edytowane przez Polski Sześcian
Odnośnik do komentarza
https://skript.pl/temat/18601-wywala-b%C5%82%C4%99dy-i-nie-dzia%C5%82a-komenda/#findComment-127027
Udostępnij na innych stronach

  • 0
7 godzin temu, Polski Sześcian napisał:

Człowieku! Ty żeś całkiem zepsuł ten skrypt -.- zaraz poprawie

 

  Pokaż ukrytą zawartość


variables:
	{own.cub.%player%} = true

command /cub [<text>] [<text>]:
	trigger:
		if arg 1 is "stworz":
			if arg 2 is "maly":
				if {own.cub.%player%} is false:
					if player has 1 bedrock:
						set {own.cub.%player%} to true
						remove 1 bedrock from player
						wait 3 second
						execute console command "pex user %player% add worldedit.*"
						execute console command "pex user %player% add worldguard.*"
						execute player command "//pos1"
						execute player command "//pos2"
						execute player command "//expand 32 n"
						execute player command "//expand 32 s"
						execute player command "//expand 32 w"
						execute player command "//expand 32 e"
						execute player command "//walls 44:1"
						execute player command "//expand vert"
						execute player command "/rg define %player% %player%"
						execute player command "/rg flag %player% build deny"
						execute player command "/rg flag %player% use deny"
						execute player command "/rg flag %player% chest-access deny"
						execute console command "pex user %player% remove worldedit.*"
						execute console command "pex user %player% remove worldguard.*"
						loop 75 times:
							send ""
						send "&2[Szescienna Kraina] &eStworzyles teren &emały &eo wymiarach &464x64 &e!"
					else:
						send "&2[Szescienna Kraina] &eNie posiadasz 1 cubmakera!"
				else:
					send "&2[Szescienna Kraina] &ePosiadasz juz teren!"
			if arg 2 is "sredni":
				if {own.cub.%player%} is false:
					if player has 2 bedrock:
						set {own.cub.%player%} to true
						remove 2 bedrock from player
						wait 3 second
						execute console command "pex user %player% add worldedit.*"
						execute console command "pex user %player% add worldguard.*"
						execute player command "//pos1"
						execute player command "//pos2"
						execute player command "//expand 64 n"
						execute player command "//expand 64 s"
						execute player command "//expand 64 w"
						execute player command "//expand 64 e"
						execute player command "//walls 44:1"
						execute player command "//expand vert"
						execute player command "/rg define %player% %player%"
						execute player command "/rg flag %player% build deny"
						execute player command "/rg flag %player% use deny"
						execute player command "/rg flag %player% chest-access deny"
						execute console command "pex user %player% remove worldedit.*"
						execute console command "pex user %player% remove worldguard.*"
						loop 75 times:
							send ""
						send "&2[Szescienna Kraina] &eStworzyles teren &eśredni &eo wymiarach &4128x128 &e!"
					else:
						send "&2[Szescienna Kraina] &eNie posiadasz 2 cubmaker'ów"
				else:
					send "&2[Szescienna Kraina] &ePosiadasz juz teren!"
			if arg 2 is "duzy":
				if {own.cub.%player%} is false:
					if player has 3 bedrock:
						set {own.cub.%player%} to true
						remove 3 bedrock from player
						wait 3 second
						execute console command "pex user %player% add worldedit.*"
						execute console command "pex user %player% add worldguard.*"
						execute player command "//pos1"
						execute player command "//pos2"
						execute player command "//expand 128 n"
						execute player command "//expand 128 s"
						execute player command "//expand 128 w"
						execute player command "//expand 128 e"
						execute player command "//walls 44:1"
						execute player command "//expand vert"
						execute player command "/rg define %player% %player%"
						execute player command "/rg flag %player% build deny"
						execute player command "/rg flag %player% use deny"
						execute player command "/rg flag %player% chest-access deny"
						execute console command "pex user %player% remove worldedit.*"
						execute console command "pex user %player% remove worldguard.*"
						loop 75 times:
							send ""
						send "&2[Szescienna Kraina] &eStworzyles teren &eduży &eo wymiarach &4256x256 &e!"
					else:
						send "&2[Szescienna Kraina] &eNie posiadasz 3 cubmaker'ów"
				else:
					send "&2[Szescienna Kraina] &ePosiadasz juz teren!"
		if arg 1 is "dodaj":
			execute console command "pex user %player% add worldedit.*"
			execute console command "pex user %player% add worldguard.*"
			execute player command "rg %player% addowner %argument 2%"
			execute console command "pex user %player% remove worldedit.*"
			execute console command "pex user %player% remove worldguard.*"
			send "&2[Szescienna Kraina] &eDodałeś gracza &4%argument 2% &edo swojego cuboida!"
		if arg 1 is "usun":
			execute console command "pex user %player% add worldedit.*"
			execute console command "pex user %player% add worldguard.*"
			execute player command "rg %player% removeowner %argument 2%"
			execute console command "pex user %player% remove worldedit.*"
			execute console command "pex user %player% remove worldguard.*"
			send "&2[Szescienna Kraina] &eUsunąłeś gracza &4%argument 2% &eze swojego cuboida!"
		if arg 1 is "pomoc":
			if arg 2 is not set:
				send "&e=== Cuboid Plugin by MisterPawlak ==="
				send "&2Wymagania do stworzenia cuboida:"
				send "&eMały > 1 cubmaker"
				send "&eŚredni > 2 cubmaker'y"
				send "&eDuży > 3 cubmaker'y"
				send "&2Komendy:"
				send "&e/cub stworz <rozmiar> &r- &2Tworzy cuboid."
				send "&e/cub dodaj <nick_gracza> &r- &2Dodaje gracza do cuboida."
				send "&e/cub usun <nick_gracza> &r- &2Usuwa gracza z cuboida."
				send "&2Cubmakery dropią z bossów lub można kupić je w sklepie (/sklep). Jeden Cubmaker otrzymujesz na starcie gry!"
				send "&2Maksymalnie możesz posiadać jeden cuboid (rozmiar nie ma znaczenia #podtekst!"

 

Pomogłem? Liczę na like ;) 

Człowieku! zepsułeś niejeden skrypt więc się tu nie pruj

co do skryptu, to nigdy nie używaj spacji.

Zawsze po warunku ma być dwukropek.

Odnośnik do komentarza
https://skript.pl/temat/18601-wywala-b%C5%82%C4%99dy-i-nie-dzia%C5%82a-komenda/#findComment-127100
Udostępnij na innych stronach

  • 0
13 godzin temu, ByczekTV napisał:

Człowieku! zepsułeś niejeden skrypt więc się tu nie pruj

co do skryptu, to nigdy nie używaj spacji.

Zawsze po warunku ma być dwukropek.

Używam tabów.

Odnośnik do komentarza
https://skript.pl/temat/18601-wywala-b%C5%82%C4%99dy-i-nie-dzia%C5%82a-komenda/#findComment-127167
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ę...