#Error in 'set score'
1 messages · Page 1 of 1 (latest)
can you send the script?
it looks like you didn't finish your syntax
Alr Lemme Get it
options:
server: &c&lBrightOfLife
every 1 second:
loop all players:
set {_onlie} to number of all players
wipe loop-player's sidebar
set name of sidebar of loop-player to "{@server"
set score "&7&m-------------------"
sidebar of loop-player to 8
set score " &cKills &7> %{kills::%loop-player%}%" in sidebar of loop-player to 7
set score " &cDeaths &7> %{deaths::%loop-player%}%" in sidebar of loop-player to 6
set score " &c&lPlAYER &7> %loop-player%" in sidebar of loop-player to 5
set score "" in sidebar of loop-player to 4
set score " &c&lONLINE PLAYERS &7> %{_online}%" in sidebar of loop-player to 3
set score "&7&m ------------------" in sidebar of loop-player to 2
set score " &7BrightofLife.minehut.gg" in sidebar of loop-player to 1
on death:
if victim is a player:
if attacker is a player:
add 1 to {deaths::%victim's uuid%}
add 1 to {kills::%attacker's uuid%}
So i forgot the in sidebar of loop-players to 3?
it looks like you just put it on the next line for some reason
i will fix it gimme a sec
missing a closing bracket on the option here
misspelled the variable here
you should be more careful
So i missed }?
by the looks of it
yes
Okay
Give me a se
c
so like this
options:
server: &c&lBrightOfLife
every 1 second:
loop all players:
set {_online} to number of all players
wipe loop-player's sidebar
set name of sidebar of loop-player to "{@server}"
set score "&7&m-------------------" sidebar of loop-player to 8
set score " &cKills &7> %{kills::%loop-player%}%" in sidebar of loop-player to 7
set score " &cDeaths &7> %{deaths::%loop-player%}%" in sidebar of loop-player to 6
set score " &c&lPlAYER &7> %loop-player%" in sidebar of loop-player to 5
set score "" in sidebar of loop-player to 4
set score " &c&lONLINE PLAYERS &7> %{_online}%" in sidebar of loop-player to 3
set score "&7&m ------------------" in sidebar of loop-player to 2
set score " &7BrightofLife.minehut.gg" in sidebar of loop-player to 1
on death:
if victim is a player:
if attacker is a player:
add 1 to {deaths::%victim's uuid%}
add 1 to {kills::%attacker's uuid%}
maybe
you should try it and if it doesnt work come back with the errors
Lemme try it
also it would be nice to farm your code like this
some code:
makes it easy to read
1 error
once again, you managed to write it correctly in some places but missed parts of the syntax here
```hs
(code)
```
is hs better :o
It's blue, VB is green
you are missing an in on line 9
problem with vb is that - makes everything gray
problem with hs is that ' makes the line gray
xD
options:
server: &c&lBrightOfLife
every 1 second:
loop all players:
set {_online} to number of all players
wipe loop-player's sidebar
set name of sidebar of loop-player to "{@server}"
set score "&7&m-------------------" in sidebar of loop-player to 8
set score " &cKills &7> %{kills::%loop-player%}%" in sidebar of loop-player to 7
set score " &cDeaths &7> %{deaths::%loop-player%}%" in sidebar of loop-player to 6
set score " &c&lPlAYER &7> %loop-player%" in sidebar of loop-player to 5
set score "" in sidebar of loop-player to 4
set score " &c&lONLINE PLAYERS &7> %{_online}%" in sidebar of loop-player to 3
set score "&7&m ------------------" in sidebar of loop-player to 2
set score " &7BrightofLife.minehut.gg" in sidebar of loop-player to 1
on death:
if victim is a player:
if attacker is a player:
add 1 to {deaths::%victim's uuid%}
add 1 to {kills::%attacker's uuid%}
Like This?
```hs
(code)
```
I'm asking you to format the code pls
I think it's the other way around xD
yes
I sent the format message twice
just scroll up a little and you'll see
options:
server: &c&lBrightOfLife
every 1 second:
loop all players:
set {_online} to number of all players
wipe loop-player's sidebar
set name of sidebar of loop-player to "{@server}"
set score "&7&m-------------------" in sidebar of loop-player to 8
set score " &cKills &7> %{kills::%loop-player%}%" in sidebar of loop-player to 7
set score " &cDeaths &7> %{deaths::%loop-player%}%" in sidebar of loop-player to 6
set score " &c&lPlAYER &7> %loop-player%" in sidebar of loop-player to 5
set score "" in sidebar of loop-player to 4
set score " &c&lONLINE PLAYERS &7> %{_online}%" in sidebar of loop-player to 3
set score "&7&m ------------------" in sidebar of loop-player to 2
set score " &7BrightofLife.minehut.gg" in sidebar of loop-player to 1
on death:
if victim is a player:
if attacker is a player:
add 1 to {deaths::%victim's uuid%}
add 1 to {kills::%attacker's uuid%}
```hs
(code)
????
somtimes I Am Stupid
Error in 'set score'
like at the start and then the what in the end?
this in the start
mhm
this in the end
but anyways, you can try the code to see if it works
that just makes it easier for people to help you ^^
options:
server: &c&lBrightOfLife
every 1 second:
loop all players:
set {_online} to number of all players
wipe loop-player's sidebar
set name of sidebar of loop-player to "{@server}"
set score "&7&m-------------------" in sidebar of loop-player to 8
set score " &cKills &7> %{kills::%loop-player%}%" in sidebar of loop-player to 7
set score " &cDeaths &7> %{deaths::%loop-player%}%" in sidebar of loop-player to 6
set score " &c&lPlAYER &7> %loop-player%" in sidebar of loop-player to 5
set score "" in sidebar of loop-player to 4
set score " &c&lONLINE PLAYERS &7> %{_online}%" in sidebar of loop-player to 3
set score "&7&m ------------------" in sidebar of loop-player to 2
set score " &7BrightofLife.minehut.gg" in sidebar of loop-player to 1
on death:
if victim is a player:
if attacker is a player:
add 1 to {deaths::%victim's uuid%}
add 1 to {kills::%attacker's uuid%}
???
i am gonna install skbee scoreboards rn
just set {_player} to loop-player and use {_player} instead of loop-player in the code.
Or you can use skbee scoreboards, might still get the same error but I recommend skbee scoreboards over the one you're using now
I am using skbee
You can see the syntax here https://skripthub.net/docs/?id=6837
with examples
the image is taking so long to load
alr great, the reason I asked is because you need to uninstall skrayfall in order to use skbee scoreboards
i cant
If i do that the side board wont work
when you change to SkBee syntax it will work
uhh what's a side board
okay
isn't it scoreboard? Like the same meaning
if you're talking about the scoreboard... that's the reason I told you to use skbee
BRUH
options:
server: &c&lBrightOfLife
every 1 second:
loop all players:
set {_online} to number of all players
wipe loop-player's sidebar
set name of sidebar of loop-player to "{@server}"
set score "&7&m-------------------" in sidebar of loop-player to 8
set score " &cKills &7> %{kills::%loop-player' uuid%} ? 0%" in sidebar of loop-player to 7
set score " &cDeaths &7> %{deaths::%loop-player' uuid%} ? 0%" in sidebar of loop-player to 6
set score " &c&lPlAYER &7> %loop-player%" in sidebar of loop-player to 5
set score "" in sidebar of loop-player to 4
set score " &c&lONLINE PLAYERS &7> %{_online}%" in sidebar of loop-player to 3
set score "&7&m ------------------" in sidebar of loop-player to 2
set score " &7BrightofLife.minehut.gg" in sidebar of loop-player to 1
on death:
if victim is a player:
if attacker is a player:
add 1 to {deaths::%victim's uuid%}
add 1 to {kills::%attacker's uuid%}
Use this
is that skrayfall?
leave it be
i see so many issues with that and only one of them is the addon
but if you're fine with it then alright
same... same 😔
It's not my code ¯_(ツ)_/¯
Oh no I just realized the separator in line 8 has more hyphens than the one in line 2 😩
might sue