There are multiple loops that match loop-player.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Dismade

New Member
Jul 23, 2017
6
0
0
20
Hi. I'm getting an error while reloading Skript that says:

"There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want."

Here are some instances in which this error occurs:

Code:
    trigger:
        if arg 1 is not set:
            send "&cUsage: /helpop <message>"
        if arg 1 is set:
            message "&c[Help] &7%player's display name%: &f%arg 1%"
            loop all players:
                loop-player has permission "is.staff":
                send "&c[Help] &7%player's display name%: &f%arg 1%" to loop-player
                stop

    trigger:
        message "&7Players in a 200 block radius:"
        loop players in radius 200 of the player:
            if loop-player = player:
                escape 2 lines
            set {target} to loop-player

on chat:
    if {EssSk.settings.mention} = true:
        set {_m::*} to message split at " "
        loop all players:
            if loop-player is not player:
                if {mentionison.%uuid of loop-player%} is true:
                    if {_m::*} contains "@%loop-player%" or "%loop-player%" or "%loop-player%," or "%loop-player%." or "%loop-player%!" or "%loop-player%?" or ",%loop-player%":
                        replace all "@%loop-player%", "%loop-player%", "%loop-player%,", "%loop-player%.", "%loop-player%!", "%loop-player%?" and ",%loop-player%" with "&7@%loop-player%" in message
                        add 1 to {mention.counter.%uuid of player%::%uuid of loop-player%}

every 10 seconds:
    loop all players:
        set {mention.counter.%uuid of loop-player%::*} to 0

Can anyone please help me?
 
its easier to figure out, if you tell us which line the error is coming from
Oh, my bad. Sure.

1st one: There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want. (EssentialsSkript.sk, line 752: send "&c[Help] &7%player's display name%: &f%arg 1%" to loop-player')

2nd one: There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want. (EssentialsSkript.sk, line 2486: if loop-player is not player:')

3rd one: There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want. (EssentialsSkript.sk, line 2504: set {mention.counter.%uuid of loop-player%::*} to 0')
 
Oh, my bad. Sure.

1st one: There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want. (EssentialsSkript.sk, line 752: send "&c[Help] &7%player's display name%: &f%arg 1%" to loop-player')

2nd one: There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want. (EssentialsSkript.sk, line 2486: if loop-player is not player:')

3rd one: There are multiple loops that match loop-player. Use loop-player-1/2/3/etc. to specify which loop's value you want. (EssentialsSkript.sk, line 2504: set {mention.counter.%uuid of loop-player%::*} to 0')
Im super confused on your style of writing this. I don't think its a problem with the loop item themselves, but its just how some things are written.
Example the first one I think might be due to an indentation problem.
 
Im super confused on your style of writing this. I don't think its a problem with the loop item themselves, but its just how some things are written.
Example the first one I think might be due to an indentation problem.

I didn't write these, but after posting I did see the indentation problem, but for others like the fourth one that seems perfectly fine it is still giving me the error.
 
Status
Not open for further replies.