#My placeholders will not update

1 messages · Page 1 of 1 (latest)

tepid sail
#

I have placeholders for Ping, Kills, Deaths, K/D, Killstreak, and Playtime that will not update. I am really new to Skript so I don't really know how it works, so please help.

Here is my Skript:

  while player is online:
    set title of player's scoreboard to "&0&l&kW &5&LShady&6&lWaffles &0&l&kW"
    set line 10 of player's scoreboard to "&3&l------------------"
    set line 9 of player's scoreboard to " &0&l| &5&lOnline: %number of all players%/35"
    set line 8 of player's scoreboard to " &0&l| &a&lPing: %{ping.%player%}%"
    set line 7 of player's scoreboard to " &0&l| &4&lKills: %{kills.%player%}%"
    set line 6 of player's scoreboard to " &0&l| &c&lDeaths: %{deaths.%player%}%"
    set line 5 of player's scoreboard to " &0&l| &5&lK/D: %{kd.%player%}%"
    set line 4 of player's scoreboard to " &0&l| &6&lKillstreak: %{killstreak.%player%}%"
    set line 3 of player's scoreboard to " &0&l| &3&lPlaytime: %{playtime.%player%}%"
    set line 2 of player's scoreboard to "&3&l-------------------"
    set line 1 of player's scoreboard to " &0&l| &8ShadyWaffles.tebex.io"
    wait 1 second```
#

Please help me with my placeholders, the only one that works is %number of all players%

full bronze
#

have u set these variables?

#

u need to update these variables

tepid sail
full bronze
#

so every second your scoreboard updates

#

"ping: %{ping.%player%}%"

#

reads variable named ping.%player%

#

that will be ping.notch or with other player's username

#

itsjust variable

#

u have to update them by yourself

#

like

#

set {ping.%player%} to ping of player

tepid sail
#

So where do I put this? At the bottom of my scoreboard skript?

#

So I would put

set {ping.%player%} to ping of player
set {kills.%player%} to kills of player
set {deaths.%player%} to deaths of player
set {kd.%player%} to killdeath? of player
set {killstreak.%player%} to killstreak? of player
set {playtime.%player%} to playtime of player
```at the bottom of my code?
full bronze
#

almost like that

#

but playtime should be time played of player

#

and killstreak doesn't exist

#

kills and deaths you need stat stuff from skbee

#

there should be other skript for killstreak

tepid sail
#

uh do you mind explaining about kills and deaths? I have skbee

full bronze
#

Seach stat in skripthub

tepid sail
#

It says no results when I look up stat

#

Also what about KD

tepid sail
full bronze