#Why does it not work?

1 messages · Page 1 of 1 (latest)

harsh scarab
#

did you use chatgpt

haughty nebula
#

no

harsh scarab
#

ok

#

looks like it is all

#

what part doesnt work

#

debug

haughty nebula
#

There is no error message

harsh scarab
#

debug

#

errors arent bugs

haughty nebula
#

how to debug im a newbie

harsh scarab
#

before every condition, broadcast what that condition tests

haughty nebula
#

I know why now

#

set {temp} to loop-index
if {temp} is online:
if {temp}'s gamemode is survival or adventure:

#

these once

#

loop index is a text, not a uuid

#

But how to fix it?

harsh scarab
#

parse

#

maybe

hasty jetty
#

bruh

harsh scarab
#

ah i see

#

you are using names in variables

#

you should use uuid instead

haughty nebula
#

still need help

harsh scarab
#

use uuid not names in variables

hasty jetty
#

bruh

haughty nebula
#

but i didnt

harsh scarab
#

you did

#

%player% = player name

hasty jetty
#

peace

#

i found a fix

haughty nebula
#

do you mean this?

#
# Require skbee
on first join:
    set {age::%uuid of player%} to 5
Every second:
    broadcast "Second"
    loop {age::*}:
        broadcast "found player"
        set {temp} to loop-index
        if {temp} is online:
            broadcast "Is online"
            if {temp}'s gamemode is survival or adventure:
                broadcast "right mode"
                if {age::%loop-index%} is a number:
                    broadcast "added value"
                    set {age::%loop-index%} to loop-value + 1
                    set title of {temp}'s scoreboard to "&eServer"
                    set line 1 of {temp}'s scoreboard to "&fAge: %{age::%loop-index%}%"
                if {age::%loop-index%} is 100:
                    set {age::%loop-index%} to "Max"
On join:
    set {age::%uuid of player%} to 5
    set title of player's scoreboard to "&eServer"
    set line 1 of player's scoreboard to "&fAge: %{age::%player%}%"
hasty jetty
#

i found a fix

#

yes

#

1 sec

harsh scarab
#

try it and see

haughty nebula
#

wont work

hasty jetty
#
# Required plugin: SkBee

# Set the age on first join
on first join:
    set {age::%player%} to 5

# Increase the age every second for players in survival or adventure mode
Every second:
    loop {age::*}:
        set {temp} to loop-index
        if {temp} is online:
            if {temp}'s gamemode is survival or adventure:
                if {age::%loop-index%} is a number:
                    set {age::%loop-index%} to loop-value + 1
                    set title of {temp}'s scoreboard to "&eServer"
                    set line 1 of {temp}'s scoreboard to "&fAge: %{age::%loop-index%}%"
                if {age::%loop-index%} is 100:
                    set {age::%loop-index%} to "Max"

# Set the age on join
on join:
    set {age::%player%} to 5
    set title of player's scoreboard to "&eServer"
    set line 1 of player's scoreboard to "&fAge: %{age::%player%}%"
#

think that should work

haughty nebula
#

wont work

hasty jetty
#

oh

#

k

#

fixed version found!

haughty nebula
#

oh

hasty jetty
#

follow the steps

#

1 sec

#

wait

#

it dosent work

#

oh rip

#

sry

haughty nebula
#

i need to know how to convert text to uuid