How to use PAPI placeholders in this code?

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

ConLudi

Member
Jan 23, 2020
43
0
0
45
Hello, I'm wondering how to use a PAPI placeholder in this code:

Code:
function updateBoard(p: player):
    setSlot({_p}, "Test", 4, "&7PLAYERS: &d%%server_online%%")

Where it says "%%server_online%%" it literally shows "%%server_online%%" and not a number
 
Hello, I'm wondering how to use a PAPI placeholder in this code:

Code:
function updateBoard(p: player):
    setSlot({_p}, "Test", 4, "&7PLAYERS: &d%%server_online%%")

Where it says "%%server_online%%" it literally shows "%%server_online%%" and not a number
Remove doubles %% (?)
code_language.skript:
%server_online%

EDIT: Ah srry, i thought that it was a expression. Try this:
code_language.skript:
function updateBoard(p: player):
    set {_sv} to placeholder "server_online"
    setSlot({_p}, "Test", 4, "&7PLAYERS: &d%{_sv}%")
 
Last edited:
Didn't work :/ I got an error message
 

Attachments

  • error.png
    error.png
    12 KB · Views: 143
Well, I want it to show your rank, and balance, and also for the scoreboard I need a specific placeholder to hide vanished players, "premiumvanish_bungeeplayercount", I put "%%server_online%%" just in case if you didn't know about PremiumVanish
 
Well, I want it to show your rank, and balance, and also for the scoreboard I need a specific placeholder to hide vanished players, "premiumvanish_bungeeplayercount", I put "%%server_online%%" just in case if you didn't know about PremiumVanish
I made a mistake, use this code, this should work:
code_language.skript:
set {_sv} to placeholder "%%server_online%%" from {_p}
 
Wait, I have one more question. How do I use a skript "placeholder" in here, e.g {level::%player's uuid%}?
 
Status
Not open for further replies.