skript-db help

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Enablement

Member
May 23, 2024
4
0
1
23
hi,

so basically do this and it does display heads of the user opening the gui with the names of the columns of the database:

code_language.skript:
                create a gui with virtual chest inventory with 6 rows named "&6ᴛᴏᴘ ᴢᴏɪɴ ᴄᴏɪɴꜱ":
                    set {_slot} to 0
                    execute "SELECT * FROM Users" in {-sql} and store the result in {_output::*}
                    loop {_output::*}:
                        make gui slot {_slot} with skull of player named loop-value:
                            play sound "ui.button.click" at volume 1 at pitch 10 to player
                        add 1 to {_slot}

kqKR5lq.png


but when i change the code to SELECT name FROM Users all it gives me is one skull named name which is the column name?

does anyone know what this could be?