Skocz do zawartości
  • 0

Pliki YML


zakros222

Pytanie

Witam otóż mam taki problem:

Kod: 

on skript load:	if folder "plugins/test" doesn't exists:		send "Nie odnaleziono folderu test!" to console		send "Trwa tworzenie..." to console		create folder "plugins/test"		send "Pomyslnie utworzono folder test!" to console	if file "plugins/test/config.yml" doesn't exists:		send "Nie odnaleziono pliku config.yml w folderze test!" to console		send "Trwa tworzenie..." to console		create file "plugins/test/config.yml"		send "Pomyslnie utworzono plik config.yml w folderze test!" to console

Tworzy folder test ale w tym folerze zamiast pliku config.yml tworzy folder config.yml

Jak zrobic żeby tworzyło ten plik?

Odnośnik do komentarza
https://skript.pl/temat/7169-pliki-yml/
Udostępnij na innych stronach

17 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on script load:    if folder "plugins/test" doesn't exists:        send "Nie odnaleziono folderu test!" to console        send "Trwa tworzenie..." to console        create folder "plugins/test"        send "Pomyslnie utworzono folder test!" to console        if file "plugins/test/config.yml" doesn't exists:        send "Nie odnaleziono pliku config.yml w folderze test!" to console        send "Trwa tworzenie..." to console        create file "plugins/test/config.yml"        send "Pomyslnie utworzono plik config.yml w folderze test!" to console

Spróbuj tak:)

Odnośnik do komentarza
https://skript.pl/temat/7169-pliki-yml/#findComment-57612
Udostępnij na innych stronach

  • 0

Proszę.

@zakros222

on script load:    if folder "plugins/Zox" doesn't exists:        send "Nie odnaleziono folderu Zox!" to console        send "Trwa tworzenie..." to console        create folder "plugins/Zox"        send "Pomyslnie utworzono folder Zox!" to console         if file "plugins/Zox/config.yml" doesn't exists:        send "Nie odnaleziono pliku config.yml w folderze Zox!" to console        send "Trwa tworzenie..." to console        create file "plugins/Zox/config.yml"        send "Pomyslnie utworzono plik config.yml w folderze Zox!" to console

Download:http://pastebin.com/raw.php?i=NibA2ZE9

SS:http://screenshooter.net/102444922/ddikniy

Edytowane przez koveek
Odnośnik do komentarza
https://skript.pl/temat/7169-pliki-yml/#findComment-57729
Udostępnij na innych stronach

  • 0
on script load:	if folder "plugins/Zox" isn't exists:		send "Nie odnaleziono folderu Zox!" to console		send "Trwa tworzenie..." to console		create folder "plugins/Zox"		send "Pomyslnie utworzono folder Zox!" to console      	if file "plugins/Zox/config.yml" isn't exists:		send "Nie odnaleziono pliku config.yml w folderze Zox!" to console		send "Trwa tworzenie..." to console		create file "plugins/Zox/config.yml"		send "Pomyslnie utworzono plik config.yml w folderze Zox!" to console
Odnośnik do komentarza
https://skript.pl/temat/7169-pliki-yml/#findComment-57734
Udostępnij na innych stronach

  • 0

on script load:	if folder "plugins/Zox" isn't exists:		send "Nie odnaleziono folderu Zox!" to console		send "Trwa tworzenie..." to console		create folder "plugins/Zox"		send "Pomyslnie utworzono folder Zox!" to console      	if file "plugins/Zox/config.yml" isn't exists:		send "Nie odnaleziono pliku config.yml w folderze Zox!" to console		send "Trwa tworzenie..." to console		create file "plugins/Zox/config.yml"		send "Pomyslnie utworzono plik config.yml w folderze Zox!" to console
Jutro to sprawdzę.
Odnośnik do komentarza
https://skript.pl/temat/7169-pliki-yml/#findComment-57813
Udostępnij na innych stronach

  • 0
on load:	if folder "plugins/test" doesn't exists:		send "Nie odnaleziono folderu" to console		create folder "plugins/test"		create file "plugins/test/config.yml"		send "Trwa tworzenie..." to console		send "Pomyslnie Utworzono Folder" to console		stop	if file "plugins/test/config.yml" doesn't exists:		send "Nie odnaleziono configu" to console		create file "plugins/test/config.yml"		send "Tworzenie..." to console		send "Pomyslnie Utworzono Plik" to console		stop

Może tak?? 

Odnośnik do komentarza
https://skript.pl/temat/7169-pliki-yml/#findComment-58615
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ę...