Skocz do zawartości
  • 0

Niezrozumiały problem


NorteX
 Udostępnij

Pytanie

Co tu jest nie tak?

(istnieją 2 argumenty, 1 = <player>, 2 = <integer>)

give %arg 2% dragon egg named "&5&lSMOCZE" with lore "&eLinijka||razy 2" to the %arg 1%

Can't understand this condition effect: give 1.. bla bla..

 

UWAGA MÓWIĘ OD RAZU, ŻE COŚ JEST NIE TAK Z GIVEM, WSZYSTKO POZOSTAŁE JEST OK

Pomocy

Poprawiam błąd ortograficzny w tytule //Ewald

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

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
26 minut temu, NorteX napisał:

Co tu jest nie tak?

(istnieją 2 argumenty, 1 = <player>, 2 = <integer>)

give %arg 2% dragon egg named "&5&lSMOCZE" with lore "&eLinijka||razy 2" to the %arg 1%

Can't understand this condition effect: give 1.. bla bla..

 

UWAGA MÓWIĘ OD RAZU, ŻE COŚ JEST NIE TAK Z GIVEM, WSZYSTKO POZOSTAŁE JEST OK

Pomocy

Wyjaśnię Ci troszkę działanie skryptu

 

%arg-1% dajesz tylko w kawałkach send "%arg-1/2%" to run "%arg-1%" etc, jak masz kod skryptu który nie jest pomiędzy " " to % nie używasz

give arg-2 dragon egg named "&5&lSMOCZE" with lore "&eLinijka||razy 2" to the arg-1

jak nie podziała bo dawanie arg itemów jest kłopotliwe to użyj

loop arg-2 times:

give 1 dragon egg named "&5&lSMOCZE" with lore "&eLinijka||razy 2" to the arg-1

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

 

command /pandora [<player>] [<int>]:
	permission: pandora.nortex
	trigger:
		if arg 1 is set:
			if arg 2 is set:
				give arg-2 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to the arg-1
				send "&e%player% &adal ci %arg 2% &5&lPuszkek &d&lPandory&a!"
			else:
				give 1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to the arg-1
				send "&e%player% &adal ci 1 &5&lPuszke &d&lPandory&a!"
		else:
			give 1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to the player
			send "&ePrzywolano ci puszke pandory!"
			
command /rozdajpandore:
	permission: rozdajpandora.nortex
	trigger:
		give 1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to all players
		broadcast "&4&lUWAGA!!!&4&lUWAGA!!! &4&lUWAGA!!! &4&lUWAGA!!!"
		broadcast "&5%player% &drozdal wszystkim po 1 puszce pandory!!"
		broadcast "&4&lUWAGA!!! &4&lUWAGA!!! &4&lUWAGA!!! &4&lUWAGA!!!"Kod prywatny, sprawa zamknięta

Błędy:

 [14:05:19 ERROR]: 'arg 2 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (pandora.sk, line 6: give arg 2 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to the arg 1')
[14:05:19 ERROR]: '1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (pandora.sk, line 9: give 1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to the arg 1')
[14:05:19 ERROR]: '1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (pandora.sk, line 12: give 1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to the player')
[14:05:19 ERROR]: '1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (pandora.sk, line 18: give 1 dragon egg named "&5&lPuszka &d&lPandory" with lore "&ePoloz na ziemi||&eby otworzyc legendarna skrzynke!" to all players')
[14:05:19 INFO]: [Skript] Encountered 4 errors while reloading pandora.sk!

Zamykam, problem sam rozwiązałem...

Edytowane przez Ewald
Przywracam treść posta.
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...