I want to write variables (%loop-player%) to a .yml file. I have made this script:
on load:
...wait 2 seconds
...if file "plugins/ProDuels/scoreboard.yml" doesn't exists:
.........create file "plugins/ProDuels/scoreboard.yml"
.........wf "line 3: '&3» &7&lNick &c%loop-player%'" to "plugins/ProDuels/scoreboard.yml"
But the server console gives this error:
[08:20:17 ERROR]: There's no loop that matches 'loop-player' (ProDuels.sk, line
593: wf "line 3: '&3╗ &7&lNick &c%loop-player%'" to "plugins/ProDuels/scoreboar
.yml"')
How can i fix this?
on load:
...wait 2 seconds
...if file "plugins/ProDuels/scoreboard.yml" doesn't exists:
.........create file "plugins/ProDuels/scoreboard.yml"
.........wf "line 3: '&3» &7&lNick &c%loop-player%'" to "plugins/ProDuels/scoreboard.yml"
But the server console gives this error:
[08:20:17 ERROR]: There's no loop that matches 'loop-player' (ProDuels.sk, line
593: wf "line 3: '&3╗ &7&lNick &c%loop-player%'" to "plugins/ProDuels/scoreboar
.yml"')
How can i fix this?