#Error in 'set score'

1 messages · Page 1 of 1 (latest)

fallen falcon
#

I tried to do this 1 script and its a sideboard whatever i do i cant fix it please help

flat falcon
#

can you send the script?
it looks like you didn't finish your syntax

fallen falcon
#

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%}

flat falcon
#

look at the line that errors

#

look at your other lines

fallen falcon
#

So i forgot the in sidebar of loop-players to 3?

flat falcon
#

it looks like you just put it on the next line for some reason

fallen falcon
#

i will fix it gimme a sec

flat falcon
#

missing a closing bracket on the option here

#

misspelled the variable here

#

you should be more careful

fallen falcon
#

So i missed }?

flat falcon
#

by the looks of it
yes

fallen falcon
#

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%}

flat falcon
#

maybe
you should try it and if it doesnt work come back with the errors

fallen falcon
#

Lemme try it

flat falcon
#

also it would be nice to farm your code like this

some code:
    makes it easy to read
fallen falcon
#

1 error

flat falcon
#

once again, you managed to write it correctly in some places but missed parts of the syntax here

outer harness
#

```hs
(code)
```

flat falcon
#

is hs better :o

fallen falcon
#

I am not that good in scripting

#

So i get confused fast

outer harness
flat falcon
outer harness
#

problem with vb is that - makes everything gray

#

problem with hs is that ' makes the line gray

flat falcon
#

xD

fallen falcon
#

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?

fallen falcon
#

Erm

#

I started To Script Yesterday and yes i read all of the scripting thingys

outer harness
#

I'm asking you to format the code pls

fallen falcon
#

How Do I fromat it

#

???

flat falcon
outer harness
outer harness
#

just scroll up a little and you'll see

flat falcon
#

type this

#

xD

fallen falcon
#

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

outer harness
#

Error in 'set score'

flat falcon
#

like this

#

and this at the end

fallen falcon
#

like at the start and then the what in the end?

flat falcon
#

this in the start

fallen falcon
#

mhm

flat falcon
#

this in the end

fallen falcon
#

Alr

#

Lemme do that

flat falcon
#

but anyways, you can try the code to see if it works
that just makes it easier for people to help you ^^

outer harness
#

Just copy paste what I sent..

#

```hs
PUT YOUR CODE HERE
```

fallen falcon
#
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%}

???

outer harness
#

Ok use skbee scoreboards

#

if you don't want to ok

fallen falcon
#

i am gonna install skbee scoreboards rn

outer harness
#

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

fallen falcon
#

I am using skbee

outer harness
#

ok then change the syntax

#

do /sk info

fallen falcon
flat falcon
#

with examples

outer harness
#

the image is taking so long to load

outer harness
# fallen falcon

alr great, the reason I asked is because you need to uninstall skrayfall in order to use skbee scoreboards

fallen falcon
#

i cant

outer harness
#

Why not

#

skrayfall doesn't have that many features anyways

fallen falcon
#

If i do that the side board wont work

flat falcon
#

when you change to SkBee syntax it will work

outer harness
#

uhh what's a side board

fallen falcon
#

okay

flat falcon
#

isn't it scoreboard? Like the same meaning

outer harness
#

if you're talking about the scoreboard... that's the reason I told you to use skbee

fallen falcon
hybrid patrol
fallen falcon
#

idk what to call it

#

Try That

outer harness
#
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

hybrid patrol
#

is that skrayfall?

flat falcon
#

leave it be

hybrid patrol
#

i see so many issues with that and only one of them is the addon

#

but if you're fine with it then alright

flat falcon
#

same... same 😔

outer harness
#

Oh no I just realized the separator in line 8 has more hyphens than the one in line 2 😩

hybrid patrol
#

might sue