Solved can't understand this condition: 'folder doesn't exists'

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Flajakay

Active Member
Jul 29, 2018
55
1
8
Dnepr, Ukraine
Sorry for my bad english, since it's not my native language. So i decided to create configs and language files for my script.
on load:
if folder "plugins/RaceS/" doesn't exists:
create folder "plugins/RaceS"
if folder "plugins/RaceS/Language" doesn't exists:
create folder "plugins/RaceS/Language"
if file "plugins/RaceS/Language/ru_RU.yml" doesn't exists:
create file "plugins/RaceS/Language/ru_RU.yml"
Then I fill these files such way:
wf "## Файл языка конфигурации RaceSystem" to "plugins/RaceS/Language/ru_RU.yml"
I'm doing everything right?
[15:04:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/RaceS/" doesn't exists' (racesystem.sk, line 4: if folder "plugins/RaceS/" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/RaceS/Language" doesn't exists' (racesystem.sk, line 6: if folder "plugins/RaceS/Language" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'file "plugins/RaceS/Language/ru_RU.yml" doesn't exists' (racesystem.sk, line 8: if file "plugins/RaceS/Language/ru_RU.yml" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'file "plugins/RaceS/Config.yml" doesn't exists' (racesystem.sk, line 54: if file "plugins/RaceS/Config.yml" doesn't exists:')
[15:04:39 ERROR]: [Skript] Can't understand this expression: 'coloured value "Language" get of "plugins/RaceS/Config.yml"' (racesystem.sk, line 72: set {setlang} to coloured value "Language" get of "plugins/RaceS/Config.yml"')
[15:04:39 ERROR]: [Skript] Can't understand this expression: 'coloured value "orc" get of "plugins/RaceS/Language/%{setlang}%.yml"' (racesystem.sk, line 73: set {orc} to coloured value "orc" get of "plugins/RaceS/Language/%{setlang}%.yml"')
And so on.
I installed addons:
SqQuery.
 
Last edited:
You have to use if folder "..." doesn't exist:
You added an extra s, which yiu only need when it isn't negative
 
Status
Not open for further replies.