Can't Make Tablist Update Using SkRayFall

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

Lightlyrow

Member
Jan 27, 2017
2
0
0
24
Skript Version: Skript 2.2-Fixes-VBb
Skript Author: Njol
Minecraft Version: 1.8.8
---
Full Code:
_Note: If the code is too large, feel free to use a pasting website (Pastebin or hastebin)_
_Note: If a variable is being set in another script, but not shown, please explain how they are being set_

`
code_language.skript:
function updateHealth(p: player):
    loop all players:
        set tablist score of {_p} to ({_p}'s health*10) for loop-player
on join:
    updateScore(player)
every 20 ticks:
    loop all players:
        updateHealth(loop-player)
`

Errors on Reload:

`
None
`

Console Errors:

`
None
`

Other Useful Info:

Addons using (including versions):
SkRayFall 1.9.7

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the Forums? Yes
What other methods have you tried to fix it? I think what is happening is that it's not updating the scoreboard, because when I relog with different health it updates it once when I join, but not any other time. I've tried doing
code_language.skript:
wipe {_p}'s score from tablist
but it doesn't even recognize that as a effect.
 
Last edited:
Try This:
code_language.skript:
function updateHealth(p: player):
    loop all players:
        set tablist score of {_p} to ({_p}'s health*10) for loop-player
on join:
    updateScore(player)
every 1.5 ticks:
    loop all players:
        updateHealth(loop-player)
//OR:

on damage of player:
        updateHealth(victim)
        updateHealth(attacker)
 
That didn't change anything :/
Still no errors
Is your tablist score showing 0 no matter your code? I seem to have run into that issue myself, the difference is I'm on 1.11.2 with the latest versions of addons and whatnot, what is weird is that a few days ago it was working fine for me then suddenly it stopped working, I'm thinking it might be another addon interfering but I've been a little too lazy to test for that since it can be quite annoying
 
Status
Not open for further replies.