Ersatz PAPI in non-player event

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

dxcf

Member
Apr 8, 2020
26
0
1
23
So I was trying to set up a scoreboard which shows stats of the player, in the placeholder part I use Ersatz then it says There's no player in a periodical event then I switched to function (Skellett's scoreboard) then I got another error saying There's no player in a function event

Does anyone know how to fix?

code_language.skript:
function updateBoard(p: player):
    set {tps} to placeholder "server_tps"
    set {joins} to placeholder "server_unique_joins"
    setSlot({_p}, "Test", 10, "&7&m+---------------------+")
    setSlot({_p}, "Test", 9, "&7» &e&lPlayer")
    setSlot({_p}, "Test", 8, "  &7Name: &e%{_p}%")
    setSlot({_p}, "Test", 7, "  &7Balance: &e%{_p}'s balance%")
    setSlot({_p}, "Test", 6, "     ")
    setSlot({_p}, "Test", 5, "&7» &e&lServer")
    setSlot({_p}, "Test", 4, "  &7Online players: &e%{online}%")
    setSlot({_p}, "Test", 3, "  &7TPS: &e%{tps}%")
    setSlot({_p}, "Test", 2, "  &7Unique Joins: &e%{joins}%")
    setSlot({_p}, "Test", 1, "&7&m+---------------------+")
 
Status
Not open for further replies.