#Loop condition in gui

1 messages · Page 1 of 1 (latest)

bleak spoke
#

so with this code it stops right before the loop starts, i only get send two "h" meaning the bottom half of the code isnt running why?


        if index of event-slot = 10:
            send "h"
            set {_gui} to a new chest inventory with 6 row named "Rank: &eHelper"
            set slot (integers between 0 and 53) of {_gui} to gray stained glass pane named " "
            set {_slot} to 10
            send "h"
            loop all offline players where [group of input is "owner"]:
                send "h"
                set slot {_slot} of {_gui} to yellow concrete named "%loop-offlineplayer%"
                add 1 to {_slot}
                send "h"
            #set slot 10 of {_gui} to yellow concrete named "&eHelper" with lore "&7Staff ranked as helper."
            open {_gui} to player
            send "h"```
manic barn
#

check your console

#

i bet LP's complaining about getting the group of an offline player

manic barn
#

yup

#

LP moment

bleak spoke
manic barn
#

read it

#

it tells you

bleak spoke
#

how do i set value-unself-lookup?

manic barn
#

again, it tells you

bleak spoke
manic barn
#

open up the log and scroll down a bit

bleak spoke
#

ok

#

what dose it mean though?

#

like why is it a last resot

manic barn
#

because it's unsafe

#

and can cause lag

bleak spoke
#

oh ok as in unsafe just beacuse it can cause lag?

manic barn
#

yes

bleak spoke
#

ok

bleak spoke
#

why dont this remove the snow block?


on place of a snow block:
    if name of player's tool is "&bSnow Orb":
        cancel event
        orb(location of event-block, 4)
        remove 1 of event-block from player```
manic barn
#

you should remove 1 from item amount of player's tool

bleak spoke
manic barn
#

i mean item amount

#

literally

#

remove 1 from item amount of player's tool literally this