on script load:
if folder "plugins/Dropskript" doesn't exists:
send "&7[&fDropskript&7] &fNie znaleziono configow." to console
create folder "plugins/Dropskript"
if file "plugins/Dropskript/config.yml" doesn't exists:
create file "plugins/Dropskript/config.yml"
if file "plugins/Dropskript/Skript fully created by heyn.txt" doesn't exists:
create file "plugins/Dropskript/Skript fully created by heyn.txt"
wf "## Cały skrypt zrobiony przez heyn. ##" to "plugins/Dropskript/config.yml"
wf "######################" to "plugins/Dropskript/config.yml"
wf "######################" to "plugins/Dropskript/config.yml"
set "Turbodrop" to "true" in yaml file "plugins/Dropskript/config.yml"
wf "##Ustawiasz Czy na serwerze ma instnieć tzw. Turbodrop ##" to "plugins/Dropskript/config.yml"
wf "######################" to "plugins/Dropskript/config.yml"
wf "######################" to "plugins/Dropskript/config.yml"
set "Turboexp" to "true" in yaml file "plugins/Dropskript/config.yml"
stop
ale tworzy mi folder, tylko że plików mi nie robi pomożecie ?
Pytanie
heyn 46
Napisałem taki kod:
on script load: if folder "plugins/Dropskript" doesn't exists: send "&7[&fDropskript&7] &fNie znaleziono configow." to console create folder "plugins/Dropskript" if file "plugins/Dropskript/config.yml" doesn't exists: create file "plugins/Dropskript/config.yml" if file "plugins/Dropskript/Skript fully created by heyn.txt" doesn't exists: create file "plugins/Dropskript/Skript fully created by heyn.txt" wf "## Cały skrypt zrobiony przez heyn. ##" to "plugins/Dropskript/config.yml" wf "######################" to "plugins/Dropskript/config.yml" wf "######################" to "plugins/Dropskript/config.yml" set "Turbodrop" to "true" in yaml file "plugins/Dropskript/config.yml" wf "##Ustawiasz Czy na serwerze ma instnieć tzw. Turbodrop ##" to "plugins/Dropskript/config.yml" wf "######################" to "plugins/Dropskript/config.yml" wf "######################" to "plugins/Dropskript/config.yml" set "Turboexp" to "true" in yaml file "plugins/Dropskript/config.yml" stopale tworzy mi folder, tylko że plików mi nie robi
pomożecie
?
Odnośnik do komentarza
https://skript.pl/temat/16330-b%C5%82%C4%85d-z-tworzeniem-plik%C3%B3w/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi