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 out 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.

skript-db issue

Discussion in 'Skript' started by helomi, Mar 6, 2019.

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

    helomi Member

    Joined:
    Feb 9, 2017
    Messages:
    18
    Likes Received:
    0
    Hello, i wrote this little skript. The skript does loop only 1x but the list contains 5 objects. When i remove rows with mysql everything works fine:

    Code:
    Code (Text):
    1.  
    2. on join:
    3.    broadcast "test"
    4.    add "stats_box", "stats_economy", "stats_playtime", "stats_pvp_pve" and "stats_world_manipulation" to {_list::*}
    5.    add "stats_dq" to {_list::*}
    6.    broadcast "%{_list::*}%"
    7.    loop {_list::*}:
    8.        broadcast "%loop-value%"
    9.        execute "select * from `%loop-value%` WHERE username = '%player%'" in {sql} and store the result in {_output::*}
    10.        IF {_output::username::1} != player:
    11.            execute "INSERT INTO `%loop-value%` (`username`, `uuid`) VALUES ('%player%', '%player's uuid%')" in {sql}
    12.  

    Server info:
    Java 8
    Spigot 1.13.2
    Skript 2.3.5
     
Thread Status:
Not open for further replies.

Share This Page

Loading...