1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

There are multiple loops that match loop-player.

Discussion in 'Skript' started by Dismade, Sep 9, 2018.

Thread Status:
Not open for further replies.
  1. Dismade

    Dismade New Member

    Joined:
    Jul 23, 2017
    Messages:
    6
    Likes Received:
    0
    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 (Text):
    1.  
    2.     trigger:
    3.         if arg 1 is not set:
    4.             send "&cUsage: /helpop <message>"
    5.         if arg 1 is set:
    6.             message "&c[Help] &7%player's display name%: &f%arg 1%"
    7.             loop all players:
    8.                 loop-player has permission "is.staff":
    9.                 send "&c[Help] &7%player's display name%: &f%arg 1%" to loop-player
    10.                 stop
    11.  
    12.     trigger:
    13.         message "&7Players in a 200 block radius:"
    14.         loop players in radius 200 of the player:
    15.             if loop-player = player:
    16.                 escape 2 lines
    17.             set {target} to loop-player
    18.  
    19. on chat:
    20.     if {EssSk.settings.mention} = true:
    21.         set {_m::*} to message split at " "
    22.         loop all players:
    23.             if loop-player is not player:
    24.                 if {mentionison.%uuid of loop-player%} is true:
    25.                     if {_m::*} contains "@%loop-player%" or "%loop-player%" or "%loop-player%," or "%loop-player%." or "%loop-player%!" or "%loop-player%?" or ",%loop-player%":
    26.                         replace all "@%loop-player%", "%loop-player%", "%loop-player%,", "%loop-player%.", "%loop-player%!", "%loop-player%?" and ",%loop-player%" with "&[email protected]%loop-player%" in message
    27.                         add 1 to {mention.counter.%uuid of player%::%uuid of loop-player%}
    28.  
    29. every 10 seconds:
    30.     loop all players:
    31.         set {mention.counter.%uuid of loop-player%::*} to 0
    Can anyone please help me?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    its easier to figure out, if you tell us which line the error is coming from
     
  3. Dismade

    Dismade New Member

    Joined:
    Jul 23, 2017
    Messages:
    6
    Likes Received:
    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')
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    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.
     
  5. Dismade

    Dismade New Member

    Joined:
    Jul 23, 2017
    Messages:
    6
    Likes Received:
    0
    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.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...