#Team invitation script

1 messages · Page 1 of 1 (latest)

woeful timber
#
            if arg-2 is not set:
                if arg-3 is set:
                    loop {kingdoms::*}:
                        loop {kingdoms::%loop-value-1%::*}:
                            if loop-value-2 is player:
                                send "&6&lC&8&lR &7&l| &aYou invited &b%arg-2%&a to &6%loop-value-1%&a!" to player
                                send "&6&lC&8&lR &7&l| &bYou&a have been invited to &6%loop-value-1%&a!" to arg-3
                                add arg-3 to {invites::*}
                                add loop-value-1 to {invites::%arg-2%::*}```
#

so basicly the command is command /kingdom <text> [<text>] [<player>]

#

what doesnt work is basicly all of this ig?

woeful timber
#

No errors

#

Just doesnt work

#

Nothing to do with the command itself

lean orchid
#

command /kingdom <text> [<text>] [<player>]:

woeful timber
lean orchid
#

thank gosh

#

lol

woeful timber
lean orchid
#

debug

#

debug it

woeful timber
#

but there is no errors or smt

#

it just doesnt work

#

thats what makes it anoying

lean orchid
#

yea debug it to see where it fails

#

!debug

sour haloBOT
# lean orchid !debug

Debug

Try broadcasting your variables, with broadcast "%{variable}%" to check if they really are set. If you are using variables starting with _, make sure they are set in the current trigger as they do not save between different triggers. Also make sure any conditions in your skript are being met.

lean orchid
#

add a broadcast before your conditions

#

and if it broadcasts it then thats not the problem and keep doing that until it doesnt broadcast anything

woeful timber
#

ok imma try

buoyant nymph
#

debug let's you sees where specifically is the issue

#

are you sure the loops have values to start with?

lean orchid
woeful timber
#

I was eating and good that you said this bc I forgot

lean orchid
#

oh

#

youu good

#

dw

woeful timber
#

but it was something else

#

something with players and text