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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

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

Write Variables in .yml file

Discussion in 'Skript' started by gfgdfg, Aug 23, 2018.

Thread Status:
Not open for further replies.
  1. gfgdfg

    gfgdfg Member

    Joined:
    Jul 25, 2017
    Messages:
    5
    Likes Received:
    0
    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?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
  3. gfgdfg

    gfgdfg Member

    Joined:
    Jul 25, 2017
    Messages:
    5
    Likes Received:
    0
    It doesn't work, I want that the plugin writes variable:% loop-player%, in the scoreboard.yml file
     
Thread Status:
Not open for further replies.
Loading...