Playtime Top Won't Work

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

PureNuggets

Member
Jun 25, 2021
17
0
1
16
command /playtop:
aliases: /ptop
trigger:
loop {playtime.time::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
send ""
send "&bPlaytop"
send " "
loop {_high.to.low.list::*}:
add 1 to {_result}
send "&b%loop-value%&7: {playtime.time::%loop-value%}" to player
if {_result} is 10:
stop

every second:
loop all players:
set time played of loop-player to {playtime.time::%loop-player%}

That's my skript, When I do /playtop it comes out like this:

Playtop

turenuggets: {playtime.time::turenuggets}

anyone help?
 
Yep but please
1. put code in code blocks
2. dont just copy scripts from the internet without understanding them
3. your solution is to add a % before and after the variable
 
Yep but please
1. put code in code blocks
2. dont just copy scripts from the internet without understanding them
3. your solution is to add a % before and after the variable
1. sorry didnt know
2. i didnt made it myself
3. i already found out what i did wrong
 
Status
Not open for further replies.