#Scoreboard TPS
1 messages · Page 1 of 1 (latest)
tps is a list of 3 values
last minute would work too
scoreboard is iffy at times try toggle scoreboard of player on before the while loop
atleast has been for me
just above while also do note tps is a number not a string make sure you set it as string
set line 3 of player's scoreboard to {_tps} -> do "%{_tps}%"
above while loop
toggle scoreboard of player on # this shouldn't be forced I believe tho
while blah
we all will
Ahmad I know I already sent him what to do to fix it
have you relogged @zenith ruin ?
variables: is only default values for the most part they won't be effected if he sets it in the code
the true stuff won't matter
you want to indent this btw
Sup Wrex
unless you want to delete everyone's stats
debug it
see if it passes your conditions
while is better for performance
while loop > loop all players
unless they can relog in less than a second and stack multiple loops
but that can be fixed too
and wont really happen
I doubt they can load more than 2 loops tho
well it doest matter
but a while is a bit more efficient
I'd only use loop all players if I have a scoreboard update function otherwise I'd use while
only reason for it is functions are a separate code block
whiles are still better as it isn't attempting to loop all players every x seconds only every x seconds after they join
they split the work load more which is many times better for tps with high players
while is better because it takes the load off that single tick and splits it
every second would perform everything for all players at the same time
while will be a different time for each player
forgot to move toggle scoreboard back 1
If you care about performance you would only update the lines that need updating in specific events
e.g. Kills or death lines would be updated on death
static lines wont be updated at all