Skocz do zawartości
  • 0

Skrypt na chat


SuperOski

Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on chat:
	if player has permission "lvl.%{CHAT}%":
		stop
	else
		cancel event
		send "Wymagana permisja: lvl.%{CHAT}%" to player
command /chat [<integer>]:
  	permission: chat
  	trigger:
  		set {CHAT} to %arg 1%
  		send "Od teraz wymagana permisja to %{CHAT}%" to player

Chyba będzie działać :P 

Odnośnik do komentarza
https://skript.pl/temat/39312-skrypt-na-chat/#findComment-246873
Udostępnij na innych stronach

  • 0
[20:56:03 ERROR]: indentation error: expected 1 tab, but found 2 tabs (chat2.sk, line 5: cancel event')
[20:56:03 ERROR]: indentation error: expected 1 tab, but found 2 tabs (chat2.sk, line 6: send "Wymagana permisja: lvl.%{CHAT}%" to player')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 8: permission: chat')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 9: trigger:')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 10: set {CHAT} to %arg 1%')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 11: send "Od teraz wymagana permisja to %{CHAT}%" to player')
[20:56:03 ERROR]: Can't understand this condition/effect: else (chat2.sk, line 4: else')
[20:56:03 ERROR]: Required entry 'trigger' is missing in 'command /chat [<integer>]' (chat2.sk, starting at line 7) (chat2.sk, line 7: command /chat [<integer>]:')
 
takie coś mam w konsoli
Edytowane przez LeKuLa
Nieaktywny

Usuwam formatowanie.

Odnośnik do komentarza
https://skript.pl/temat/39312-skrypt-na-chat/#findComment-246881
Udostępnij na innych stronach

  • 0
12 godzin temu, SuperOski napisał:
[20:56:03 ERROR]: indentation error: expected 1 tab, but found 2 tabs (chat2.sk, line 5: cancel event')
[20:56:03 ERROR]: indentation error: expected 1 tab, but found 2 tabs (chat2.sk, line 6: send "Wymagana permisja: lvl.%{CHAT}%" to player')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 8: permission: chat')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 9: trigger:')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 10: set {CHAT} to %arg 1%')
[20:56:03 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '__->->' [-> = tab, _ = space, ? = other whitespace]) (chat2.sk, line 11: send "Od teraz wymagana permisja to %{CHAT}%" to player')
[20:56:03 ERROR]: Can't understand this condition/effect: else (chat2.sk, line 4: else')
[20:56:03 ERROR]: Required entry 'trigger' is missing in 'command /chat [<integer>]' (chat2.sk, starting at line 7) (chat2.sk, line 7: command /chat [<integer>]:')
 
takie coś mam w konsoli

wytabuj sobie od nowa cały skrypt i powinno działać ;)

Edytowane przez LeKuLa
Nieaktywny

Usuwam formatowanie z cytatu.

Odnośnik do komentarza
https://skript.pl/temat/39312-skrypt-na-chat/#findComment-246888
Udostępnij na innych stronach

  • 0
57 minut temu, SuperOski napisał:

Wyskakują mi takie errory co na zdjęciu: https://cutt.ly/skryptniedziala

 

Nie wytabowałeś skryptu, jeżeli go sobie nie wytabujesz to nie będzie działać :P 

Nie można używać spacji i tabów jednocześnie, zdecytuj się czy spacje czy taby do tabowania.

Tabowanie: Albo 1 tab albo 4 spacje

Edytowane przez Grex
Odnośnik do komentarza
https://skript.pl/temat/39312-skrypt-na-chat/#findComment-246895
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ę...