Skocz do zawartości
  • 0

skrypt na tag


SpokocukierkiPL
 Udostępnij

Pytanie

hej mam skrypt na tag tylko są błędy poprawi ktoś?# Cukierek-TAG #

on chat:
    if {tag::%player%} is set:
        broadcast "%{tag::%player%}% RANGA %colored player's name% %message%"


command /tag-dodaj [<text>]:
      permission: tag
      trigger:
            if length of arg 1 > 20:
                send "&4Za duzo znakow!" to player
            else:
                set {tag::%player%} to arg 1
  
command /tag-usun:
      trigger:
            delete {tag::%player%}
[19:23:43 INFO]: [Skript] Reloading tag.sk...
[19:23:43 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (tag.sk, line 7: permission: tag')
[19:23:43 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (tag.sk, line 8: trigger:')
[19:23:43 ERROR]: indentation error: expected 6 tabs, but found 4 tabs (tag.sk, line 10: send "&4Za duzo znakow!" to player')
[19:23:43 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. (tag.sk, line 9: if length of arg 1 > 20:')
[19:23:43 ERROR]: indentation error: expected 6 tabs, but found 4 tabs (tag.sk, line 12: set {tag::%player%} to arg 1')
[19:23:43 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. (tag.sk, line 11: else:')
[19:23:43 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (tag.sk, line 15: trigger:')
[19:23:43 ERROR]: Required entry 'trigger' is missing in 'command /tag-dodaj [<text>]' (tag.sk, starting at line 6) (tag.sk, line 6: command /tag-dodaj [<text>]:')
[19:23:43 ERROR]: Unexpected entry 'if length of arg 1 > 20'. Check whether it's spelled correctly or remove it. (tag.sk, line 9: if length of arg 1 > 20:')
[19:23:43 ERROR]: Unexpected entry 'else'. Check whether it's spelled correctly or remove it. (tag.sk, line 11: else:')
[19:23:43 ERROR]: Required entry 'trigger' is missing in 'command /tag-usun' (tag.sk, starting at line 14) (tag.sk, line 16: delete {tag: :%player%}')
[19:23:43 ERROR]: Unexpected entry 'delete {tag'. Check whether it's spelled correctly or remove it. (tag.sk, line 16: delete {tag: :%player%}')
[19:23:43 INFO]: [Skript] Encountered 10 errors while reloading tag.sk!

 

Edytowane przez Peridot
Peridot

Wstawiam kod i logi w code

Notatka dodana przez Peridot

Odnośnik do komentarza
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, SpokocukierkiPL napisał:

hej mam skrypt na tag tylko są błędy poprawi ktoś?# Cukierek-TAG #

on chat:
    if {tag::%player%} is set:
        broadcast "%{tag::%player%}% RANGA %colored player's name% %message%"


command /tag-dodaj [<text>]:
      permission: tag
      trigger:
            if length of arg 1 > 20:
                send "&4Za duzo znakow!" to player
            else:
                set {tag::%player%} to arg 1
  
command /tag-usun:
      trigger:
            delete {tag::%player%}
[19:23:43 INFO]: [Skript] Reloading tag.sk...
[19:23:43 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (tag.sk, line 7: permission: tag')
[19:23:43 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (tag.sk, line 8: trigger:')
[19:23:43 ERROR]: indentation error: expected 6 tabs, but found 4 tabs (tag.sk, line 10: send "&4Za duzo znakow!" to player')
[19:23:43 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. (tag.sk, line 9: if length of arg 1 > 20:')
[19:23:43 ERROR]: indentation error: expected 6 tabs, but found 4 tabs (tag.sk, line 12: set {tag::%player%} to arg 1')
[19:23:43 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. (tag.sk, line 11: else:')
[19:23:43 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (tag.sk, line 15: trigger:')
[19:23:43 ERROR]: Required entry 'trigger' is missing in 'command /tag-dodaj [<text>]' (tag.sk, starting at line 6) (tag.sk, line 6: command /tag-dodaj [<text>]:')
[19:23:43 ERROR]: Unexpected entry 'if length of arg 1 > 20'. Check whether it's spelled correctly or remove it. (tag.sk, line 9: if length of arg 1 > 20:')
[19:23:43 ERROR]: Unexpected entry 'else'. Check whether it's spelled correctly or remove it. (tag.sk, line 11: else:')
[19:23:43 ERROR]: Required entry 'trigger' is missing in 'command /tag-usun' (tag.sk, starting at line 14) (tag.sk, line 16: delete {tag: :%player%}')
[19:23:43 ERROR]: Unexpected entry 'delete {tag'. Check whether it's spelled correctly or remove it. (tag.sk, line 16: delete {tag: :%player%}')
[19:23:43 INFO]: [Skript] Encountered 10 errors while reloading tag.sk!

 

on chat:
	if {tag::%player%} is set:
		broadcast "%{tag::%player%}% RANGA %colored player's name% %message%"


command /tag-dodaj [<text>]:
	permission: tag
	trigger:
		if length of arg 1 > 20:
			send "&4Za duzo znakow!" to player
		else:
			set {tag::%player%} to arg 1
  
command /tag-usun:
	trigger:
		delete {tag::%player%}

Jedyny problem był z wcięciami.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 6.08.2020 o 21:22, Kormic napisał:
on chat:
	if {tag::%player%} is set:
		broadcast "%{tag::%player%}% RANGA %colored player's name% %message%"


command /tag-dodaj [<text>]:
	permission: tag
	trigger:
		if length of arg 1 > 20:
			send "&4Za duzo znakow!" to player
		else:
			set {tag::%player%} to arg 1
  
command /tag-usun:
	trigger:
		delete {tag::%player%}

Jedyny problem był z wcięciami.

pisze podwójnie

[21:25:09 INFO]: xd RANGA SpokocukierkiPL XDD
[21:25:09 INFO]:  [HeadAdmin]SpokocukierkiPL» XDD
[21:25:23 INFO]: xd RANGA SpokocukierkiPL xx
[21:25:23 INFO]:  [HeadAdmin]SpokocukierkiPL» xx

 

zle cos zrobilem

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 6.08.2020 o 21:26, SpokocukierkiPL napisał:

pisze podwójnie

[21:25:09 INFO]: xd RANGA SpokocukierkiPL XDD
[21:25:09 INFO]:  [HeadAdmin]SpokocukierkiPL» XDD
[21:25:23 INFO]: xd RANGA SpokocukierkiPL xx
[21:25:23 INFO]:  [HeadAdmin]SpokocukierkiPL» xx

 

Co pisze podwójnie? Sprecyzuj, bo nie wiem nawet z czym teraz masz problem.

Edytowane przez xAxee
xAxee

Poprawiam cytat

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 6.08.2020 o 21:29, SpokocukierkiPL napisał:

bo robi ten broadcast a ja chce zeby bylo %tag% %group% %player% %message%

można dać ten 

{tag::%player%} 

do essentials?

Raczej większość pluginów zarządzających czatem ma opcję dodawania pewnych zmiennych, ale nic nie obiecuję. Poszukaj w configu.

Możesz równie dobrze zrobić przez skripta 'set chat format to "". Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Edytowane przez xAxee
xAxee

Poprawiam cytat

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
6 minut temu, Kormic napisał:

Raczej większość pluginów zarządzających czatem ma opcję dodawania pewnych zmiennych, ale nic nie obiecuję. Poszukaj w configu.

chce zeby bylo przed rangą a tak robi sie broadcast z tym samym i tagiem

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

  • 0
1 minutę temu, SpokocukierkiPL napisał:

chce zeby nie bylo przed rangą a tak robi sie broadcast z tym samym i tagiem

Edytowałem moją wcześniejszą wiadomość. Możesz zastąpić tego broadcasta tym wyrażeniem. Sprawdź czy takie coś ci odpowiada.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, THEzombiePL napisał:

Spróbuj dać send "text" to all players zamiast broadcast "text"

A co to mu niby da? Nie będzie przecież widział wiadomości w konsoli. Poza tym wszyscy oprócz konsoli będą widzieli wiadomość podwójnie.

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

 Udostępnij

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

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