Skocz do zawartości
  • 0

Problem za Skryptem na zgłoszenia.


Pytanie

Witam, ostatni zmagam się ze skryptem, otóż próbuje własnymi siłami napisać własny skrypt, który będzie zapisywał do dokumentu tekstowego zgłoszenia graczy, czyli gracz wpisze np "/zglos na serwerze nie dziala to i to." Niby proste, a po przeładowaniu skript'a 6 błędów, których nie rozumiem (oczywiście rozumiem co tam jest napisane po angielsku, ale nie wiem co zrobic :( Proszę pomóżcie mi.

 

[codesyntax]# AvatarError - Informacje:

# Autor: SkepsonTV.
# Wersja: 0.1.0 ALPHA.

command /zglos []:
trigger:
if argument 1 is not empty:
log "%player% zglasza blad o tresci: %argument 1%" to "Zgłoszenia"
send "Zgloszono blad, gracza pomyslnie, pamietaj, jedno zgloszenie wystarczy !" to player
if argument 1 is empty:
send "Poprawne uzycie: /zglos [tresc]" to player
stop[/codesyntax]

 

Nie jest "wytabowane", bo gdy "tabuje" to wyskakuje, że Skript nie spodziewał się tych tab'ów.

Nie rozumie "else:", ani %argument 1%, agr1, @arg1. Nie rozumiem tego ;(

 

]: 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. (AvatarError.sk, line 7: trigger:')
[11:51:03] [OSTRZEŻENIE]: 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. (AvatarError.sk, line 8: if argument 1 is not empty:')
[11:51:03] [OSTRZEŻENIE]: 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. (AvatarError.sk, line 11: else:')
[11:51:03] [BŁĄD]: 'send "Zgloszono blad, gracza pomyslnie, pamietaj, jedno zgloszenie wystarczy !" to player' is not an entry (like 'name : value') (AvatarError.sk, line 10: send "Zgloszono blad, gracza pomyslnie, pamietaj, jedno zgloszenie wystarczy !" to player')
[11:51:03] [BŁĄD]: Unexpected entry 'if argument 1 is not empty'. Check whether it's spelled correctly or remove it. (AvatarError.sk, line 8: if argument 1 is not empty:')
[11:51:03] [BŁĄD]: Unexpected entry 'log "%player% zglasza blad o tresci'. Check whether it's spelled correctly or remove it. (AvatarError.sk, line 9: log "%player% zglasza blad o tresci: %argument 1%" to "Zgoszenia"')
[11:51:03] [BŁĄD]: Unexpected entry 'else'. Check whether it's spelled correctly or remove it. (AvatarError.sk, line 11: else:')
[11:51:03] [BŁĄD]: Unexpected entry 'send "Poprawne uzycie'. Check whether it's spelled correctly or remove it. (AvatarError.sk, line 12: send "Poprawne uzycie: /zglos [tresc]" to player')
[11:51:03] [INFO]: Loaded 1 script with a total of 0 triggers and 1 command in 0.02 seconds
[11:51:03] [INFO]: [skript] Encountered 5 errors while reloading the config and all scripts!

 

Wersja Bukkit'a - 1.7.2 R.O3

Skript - 2.1.2.

Edytowane przez SkepsonTV
Odnośnik do komentarza
https://skript.pl/temat/1213-problem-za-skryptem-na-zg%C5%82oszenia/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Proszę:

command /zglos [<text&gt]:	trigger:		if arg 1 is set:			log "%player% zglasza blad o tresci: %arg 1%" to "Zgloszenia"			send "&3Zgloszenie zostalo wyslane"			stop		else:			send "&cPoprawne uzycie &3/zglos <tresc>"			stop
Odnośnik do komentarza
https://skript.pl/temat/1213-problem-za-skryptem-na-zg%C5%82oszenia/#findComment-9459
Udostępnij na innych stronach

  • 0
command /zglos [<text&gt] [<text&gt] [<text&gt] [<text&gt] [<text&gt] [<text&gt]:if arg 1 is set:log "%player%: %arg 1% %arg 2% %arg 3% %arg 4% %arg 5% %arg 6%else:send " nie podales bledu! " to player

edit: nie widziałem @up

Edytowane przez kryxkan
Odnośnik do komentarza
https://skript.pl/temat/1213-problem-za-skryptem-na-zg%C5%82oszenia/#findComment-9462
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ę...