1. 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 comminuty!

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

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Write varriables to .yml file

Oct 25, 2018
Write varriables to .yml file
  • 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

    How can i fix this?