#help

1 messages · Page 1 of 1 (latest)

acoustic jetty
#
    if player's tool is {test}:
        if player is in region "spawn":
            stop
        else:
            if {cooldown::%player%} is not set or {cooldown::%player%} is less than now:
                set {cooldown::%player%} to now + 60 seconds
                loop all entities in radius 3 of player:
                    if loop-entity is not player:
                        apply nausea to loop-entities for 5 seconds
            else:
                send "&cYou must wait before using this again!" to player``` When i parsed this it said i needed an if before the else on line 5, how do i do that?
latent kindle
#

It's saying you can merge the
else:
if...:
into just
else if...:

acoustic jetty
#

oh

latent kindle
#

Maybe

acoustic jetty
#

Line 6: 'if all' sections may not contain other sections

#

what does tha t mean

acoustic jetty
# vapid iron <:send_code:688375650582790339>
    if player's tool is {test}:
        if player is in region "spawn":
            stop
        else:
            if {cooldown::%player%} is not set or {cooldown::%player%} is less than now:
                set {cooldown::%player%} to now + 60 seconds
                loop all entities in radius 3 of player:
                    if loop-entity is not player:
                        apply nausea to loop-entities for 5 seconds
            else:
                send "&cYou must wait before using this again!" to player```
#

whoops..

#

it messed up

vapid iron
#

i thought you had modified the code
anyways you need to split up your or condition using if any like so:

if any:
  {cooldown::%player%} is not set 
  {cooldown::%player%} is less than now
then:
acoustic jetty
#

so i change those 2 lines

#

well that one iline