Witam, dzisiaj postanowiłem zabrać sie za rozbudowany skrypt na ranking pvp. Pomyślałem ze zrobie konfiguracje w pliku yml, ale już zrobiłem coś nie tak
on script load: if {logi} is "tak": send "[AnaRanking] Skrypt zostal pomyslnie zaladowany" to the console send "[AnaRanking] Wersja: %{version}% Autor: %{author}%" to the console if folder "plugins/AnaRanking" doesn't exists: send "[AnaRanking] Folder AnaRanking nie istnieje i zostanie utworzony" to the console wait 1 tick create folder "plugins/AnaRanking" if file "plugins/AnaRanking/konfiguracja.yml" doesn't exists: send "[AnaRanking] Plik konfiguracyjny nie istnieje wiec zostal utworzony" to the console wait 1 tick create file "plugins/AnaRanking/konfiguracja.yml" send "[AnaRanking] Trwa uzupelnianie pliku konfiguracyjnego" to the consoleon script load: set {logi} to single value "tak" get of "plugins/AnaRanking/konfiguracja.yml" parsed as texton script unload: if {logi} is "tak": send "[AnaRanking] Skrypt zostal pomyslnie zaladowany" to the console send "[AnaRanking] Dziekuje za uzywanie anaranking" to the console#Sprawdzanie nowych aktulizacjievery 30 minutes: if {_version} is not {version}: if {logi} is "tak": send "" to the console send "" to the console send "[]=======================[]" to the console send "[AnaRanking] Twoja wersja skryptu jest nieaktualna!" to the console send "[AnaRanking] Twoja wersja: %{version}% a najnowsza wersja: %{_version}%" to the console send "[AnaRanking] Wpisz /anaranking aktulizacja lub wejdz na www.anaranking.zlsw.pl" to the console send "[]=======================[]" to the console send "" to the console send "" to the console
Tworzy plik, ale...
1. Wysyła wiadomość o stworzeniu folderu, ale o stworzeniu pliku już nie.
Pytanie
Anastair 64
Witam, dzisiaj postanowiłem zabrać sie za rozbudowany skrypt na ranking pvp. Pomyślałem ze zrobie konfiguracje w pliku yml, ale już zrobiłem coś nie tak
on script load: if {logi} is "tak": send "[AnaRanking] Skrypt zostal pomyslnie zaladowany" to the console send "[AnaRanking] Wersja: %{version}% Autor: %{author}%" to the console if folder "plugins/AnaRanking" doesn't exists: send "[AnaRanking] Folder AnaRanking nie istnieje i zostanie utworzony" to the console wait 1 tick create folder "plugins/AnaRanking" if file "plugins/AnaRanking/konfiguracja.yml" doesn't exists: send "[AnaRanking] Plik konfiguracyjny nie istnieje wiec zostal utworzony" to the console wait 1 tick create file "plugins/AnaRanking/konfiguracja.yml" send "[AnaRanking] Trwa uzupelnianie pliku konfiguracyjnego" to the consoleon script load: set {logi} to single value "tak" get of "plugins/AnaRanking/konfiguracja.yml" parsed as texton script unload: if {logi} is "tak": send "[AnaRanking] Skrypt zostal pomyslnie zaladowany" to the console send "[AnaRanking] Dziekuje za uzywanie anaranking" to the console#Sprawdzanie nowych aktulizacjievery 30 minutes: if {_version} is not {version}: if {logi} is "tak": send "" to the console send "" to the console send "[]=======================[]" to the console send "[AnaRanking] Twoja wersja skryptu jest nieaktualna!" to the console send "[AnaRanking] Twoja wersja: %{version}% a najnowsza wersja: %{_version}%" to the console send "[AnaRanking] Wpisz /anaranking aktulizacja lub wejdz na www.anaranking.zlsw.pl" to the console send "[]=======================[]" to the console send "" to the console send "" to the consoleTworzy plik, ale...1. Wysyła wiadomość o stworzeniu folderu, ale o stworzeniu pliku już nie.
2. Plik konfiguracyjny tworzy sie pusty,
3. nie wyświetla wiadomości w konsoli.
Odnośnik do komentarza
https://skript.pl/temat/3578-plik-yml/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi