#Problem with parsing?

1 messages · Page 1 of 1 (latest)

lusty bluff
#

Hello, I have problem with sending message to player. I just see the broadcast and not the message to {_p2} ({_p2} is my nickname, it is also checked using broadcast). Could someone help me please?
Code:

    loop {duel.arena::%{deul.arena::%{_p}%}%::*} where [input is not {_p}]:
        set {_p2} to loop-index
        broadcast "%{_p2}%"
        send "test" to {_p2} parsed as player```
nocturne berry
#

Nickname or username?

lusty bluff
nocturne berry
#

Hmm
Try broadcasting the parsed version

lusty bluff
nocturne berry
#

Yeah it's not finding your name as a player

#

Are you sure it's your actual username or uuid without any modifications?

lusty bluff
#

yes, it should be

nocturne berry
#

Can you send code where the index is set?

lusty bluff
#
    set {_count} to 1
    loop 99 times:
        if {duel.arena::%{_count}%::*} is set:
            add 1 to {_count}
        else:
            add {_vyzyvatel} to {duel.arena::%{_count}%::*}
            add {_vyzvany} to {duel.arena::%{_count}%::*}
            set {_x1} to "30.5"
            set {_z1} to "8.5"
            set {_x2} to "30.5"
            set {_z2} to "32.5"
            set {_y} to "-60"
            if {_count} is not 1:
                set {_x1} to ({_x1} + ({_count} * 34))
                set {_x2} to ({_x2} + ({_count} * 34))
            teleport {_vyzyvatel} to location({_x1} parsed as number, {_y} parsed as number, {_z1} parsed as number, world "duel", 0, 0)
            teleport {_vyzvany} to location({_x2} parsed as number, {_y} parsed as number, {_z2} parsed as number, world "duel", 180, 0)
            set {deul.arena::%{_vyzvany}%} to {_count}
            set {deul.arena::%{_vyzyvatel}%} to {_count}
            stop loop```
nocturne berry
#

I don't ever see the index being set

#

What line would be doing it

#

What I see indicates that you should be using loop-value instead and not parsing at all