Hello, thank you for your interest.
There are no errors in the code, it just doesn't work as intended.
I'm trying to list all the players in the loop-variable in the sidebar.
Code output: Listing a single player, each player sees their own name.
https://i.hizliresim.com/P9KU9k.png
An example like this is working:
There are no errors in the code, it just doesn't work as intended.
I'm trying to list all the players in the loop-variable in the sidebar.
Code:
loop {party.%{Ownerofparty.%player%}%.list::*}:
set {_Player} to player
send "&9&l[SİSTEM] &7&l%{_Player}% &9&lAdlı oyuncu gruba katıldı." to loop-variable
#Wrong working:
set {_Player} to loop-variable
delete loop-variable sidebar
set name of sidebar of loop-variable to "&9&lGRUP"
set {_n} to 1
loop 6 times:
set score "%{_Player}%" in sidebar of {_Player} to {_n}
add 1 to {_n}
Code output: Listing a single player, each player sees their own name.
https://i.hizliresim.com/P9KU9k.png
An example like this is working:
Code:
loop {party.%{Ownerofparty.%player%}%.list::*}:
set {_Player} to loop-variable
message "{_Player}" to loop-variable
Last edited: