Skocz do zawartości
  • 0

Mam 12 błędów w skrypcie


hej99999

Pytanie

Chciałem zrobić skrypt na życia jak na km ale mam 12 błędów:

[16:43:31] [Server thread/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. (LivesBan.sk, line 24: if arg 1 is add:')
[16:43:31] [Server thread/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. (LivesBan.sk, line 27: if arg 1 is remove:')
[16:43:31] [Server thread/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. (LivesBan.sk, line 30: if arg 1 is not set:')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: if arg 1 is not set (LivesBan.sk, line 7: if arg 1 is not set')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: send:"&4&lMasz %{zycia.%player%}% &4&l┐yŠ!" (LivesBan.sk, line 8: send:"&4&lMasz %{zycia.%player%}% &4&l┐yŠ!"')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: if arg 1 is set (LivesBan.sk, line 9: if arg 1 is set')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: send:"&4Gracz %arg1% ma %{zycia.%arg1%}% ┐yŠ!" (LivesBan.sk, line 10: send:"&4Gracz %arg1% ma %{zycia.%arg1%}% ┐yŠ!"')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: if player has permission "LBadmin" (LivesBan.sk, line 23: if player has permission "LBadmin"')
[16:43:31] [Server thread/ERROR]: Can't compare a text with 'add' (LivesBan.sk, line 24: if arg 1 is add:')
[16:43:31] [Server thread/ERROR]: Can't understand this expression: arg2 (LivesBan.sk, line 25: add 1 to {zycia.%arg2%}')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: send:"Pomyťlnie dodano ┐ycie" (LivesBan.sk, line 26: send:"Pomyťlnie dodano ┐ycie"')
[16:43:31] [Server thread/ERROR]: Can't compare a text with 'remove' (LivesBan.sk, line 27: if arg 1 is remove:')
[16:43:31] [Server thread/ERROR]: Can't understand this expression: arg2 (LivesBan.sk, line 28: remove 1 from {zycia.%arg2%}')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: send:"Pomyťlnie zabrano ┐ycie" (LivesBan.sk, line 29: send:"Pomyťlnie zabrano ┐ycie"')
[16:43:31] [Server thread/ERROR]: Can't understand this condition/effect: send:"&6/livesban &1add [gracz]" (LivesBan.sk, line 31: send:"&6/livesban &1add [gracz]"')

Skrypt: 

Pomoże mi ktoś bo ja się na tym nie znam i nie wiem jak to powinno być

Odnośnik do komentarza
Udostępnij na innych stronach

16 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Teraz, CoFFeIN04 napisał:

Po 1 dając gotowca nie pomagasz, po 2 nie rozwiązałeś wszystkich błędów.

1. Wiem, ale nie wydaję mi się, aby ten pan dał się przekonać i się nauczyć skripta. Pewnie pobiegłby po prostu na inne forum prosząc o gotowca..

2. Nawet nie patrzyłem jakie ma błędy, poprawiałem to, co zauważyłem. Niech wyśle błędy z moim skryptem, to poprawię.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 1
on join:
	set {zycia::%player%} to 0 if {zycia::%player%} is not set

command /zycia [<text>]:
	trigger:
		if arg 1 is not set:
			send "&4&lMasz %{zycia::%player%}% &4&lżyć!"
			stop
		if arg 1 is set:
			set {_lives} to {zycia::%arg 1%} if ({zycia::%arg 1%} is set) else 0
			send "&4Gracz %arg 1% ma %{zycia::%arg 1%}% żyć!"	

on death of player:
	send "&4&lStraciłeś 1 życie!" to player
	remove 1 from {zycia::%player%}
	if {zycia::%player%} is 0:
		execute console command "/tempban %player% 24h &4Skończyły ci się życia!"
		send "&4&lGraczowi %player% skończyły sie życia i został zbanowany!" to all players

on drink a potion:
	if name of player's tool is "&cEliksir życia":
		send "&cWypiles/as eliksir dajacy zycie"
		add 1 to {zycia::%player%}

command /livesban [<text>] [<offlineplayer>]:
	permission: LBadmin
	trigger:
		if arg 2 is not set:
			send "&6/livesban &1add [gracz]"
			stop
		if arg 1 is "add":
			add 1 to {zycia::%arg 2%}
			send "Pomyślnie dodano życie"
			stop
		if arg 1 is "remove":
			remove 1 from {zycia::%arg 2%}
			send "Pomyślnie zabrano życie"
			stop
		send "&6/livesban &1add [gracz]"

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

 

1 godzinę temu, CoFFeIN04 napisał:

Polecam podstaw się nauczyć, np. wiki.skript.pl

Przeczytałem to, poprawiłem, nie dzialało,

on join:
	set {zycia::%player%} to 0 if {zycia::%player%} is not set

command /zycia [<text>]:
	trigger:
		if arg 1 is not set:
			send "&4&lMasz %{zycia::%player%}% &4&lżyć!"
			stop
		if arg 1 is set:
			set {_lives} to {zycia::%arg 1%} if ({zycia::%arg 1%} is set) else 0
			send "&4Gracz %arg 1% ma %{zycia::%arg 1%}% żyć!"	

on death of player:
	send "&4&lStraciłeś 1 życie!" to player
	remove 1 from {zycia::%player%}
	if {zycia::%player%} is 0:
		execute console command "/tempban %player% 24h &4Skończyły ci się życia!"
		send "&4&lGraczowi %player% skończyły sie życia i został zbanowany!" to all players

on drink a potion:
	if name of player's tool is "&cEliksir życia":
		send "&cWypiles/as eliksir dajacy zycie"
		add 1 to {zycia::%player%}

command /livesban [<text>] [<offlineplayer>]:
	permission: LBadmin
	trigger:
		if arg 2 is not set:
			send "&6/livesban &1add [gracz]"
			stop
		if arg 1 is "add":
			add 1 to {zycia::%arg 2%}
			send "Pomyślnie dodano życie"
			stop
		if arg 1 is "remove":
			remove 1 from {zycia::%arg 2%}
			send "Pomyślnie zabrano życie"
			stop
		send "&6/livesban &1add [gracz]"

Na podstawie tego też próbowałem poprawić, to jest chyba za trudne dla mnie 😞 

Da ktoś link do jakiegoś tutoriala ze skripta?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
13 minut temu, hej99999 napisał:

 

Przeczytałem to, poprawiłem, nie dzialało,


on join:
	set {zycia::%player%} to 0 if {zycia::%player%} is not set

command /zycia [<text>]:
	trigger:
		if arg 1 is not set:
			send "&4&lMasz %{zycia::%player%}% &4&lżyć!"
			stop
		if arg 1 is set:
			set {_lives} to {zycia::%arg 1%} if ({zycia::%arg 1%} is set) else 0
			send "&4Gracz %arg 1% ma %{zycia::%arg 1%}% żyć!"	

on death of player:
	send "&4&lStraciłeś 1 życie!" to player
	remove 1 from {zycia::%player%}
	if {zycia::%player%} is 0:
		execute console command "/tempban %player% 24h &4Skończyły ci się życia!"
		send "&4&lGraczowi %player% skończyły sie życia i został zbanowany!" to all players

on drink a potion:
	if name of player's tool is "&cEliksir życia":
		send "&cWypiles/as eliksir dajacy zycie"
		add 1 to {zycia::%player%}

command /livesban [<text>] [<offlineplayer>]:
	permission: LBadmin
	trigger:
		if arg 2 is not set:
			send "&6/livesban &1add [gracz]"
			stop
		if arg 1 is "add":
			add 1 to {zycia::%arg 2%}
			send "Pomyślnie dodano życie"
			stop
		if arg 1 is "remove":
			remove 1 from {zycia::%arg 2%}
			send "Pomyślnie zabrano życie"
			stop
		send "&6/livesban &1add [gracz]"

Na podstawie tego też próbowałem poprawić, to jest chyba za trudne dla mnie 😞 

Da ktoś link do jakiegoś tutoriala ze skripta?

Czego dokładnie nie rozumiesz?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Oczywiście!

https://docs.skunity.com/syntax/

 

jak nie dasz rady to:

Spoiler

https://docs.skunity.com/syntax/search/id:5035

https://docs.skunity.com/syntax/search/id:5240

nadal nic?

Spoiler


teleport player to spawn point of "world_nether"

 

 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
16 godzin temu, CoFFeIN04 napisał:

teleport player to spawn point of "world_nether"

działa 🙂 

już ostatnie pytanie (jasne, bo jeszcze ktoś w to uwierzy).

Jak zrobić komendę która otwiera nam skrzynię (np. do wyboru mapy)?

wiem, że mgliście to tłumaczę, ale może ktoś zrozumie

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