Solved Need help with Scoreboards

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

Status
Not open for further replies.
it says <none> on the scoreboard.
also in database its in UUID not name so is that the problem?
[doublepost=1494281818,1494276908][/doublepost]@YoshYz Nvm! I fixed it somehow. Thanks for helping me.
[doublepost=1494606252][/doublepost]@YoshYz Update: It's not working?

code_language.skript:
function updateBoard(p: player):
    set {_result::*} to objects in column "amount" from result of query "SELECT amount FROM rubies WHERE uuid = '%uuid of {_target}%'" and close
    set {_amount} to "%{_result::*}%" parsed as number
    "%{_result::*}%" is "<none>":
        update "INSERT INTO rubies (`uuid`, `amount`) VALUES ('%uuid of {_target}%', '0')"
        set {_amount} to 0
    setSlot({_p}, "Premium", 16, "&f%{_amount}%")

It says 0 even though i have set my players money to 500
 
Status
Not open for further replies.