Solved Loop help

  • 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 community!

    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.

Deducciones

Member
Jul 19, 2017
2
0
0
code_language.skript:
loop all players:
    send "&9(&6%loop-player's world%&9) (&6%number of all players in loop-player's world%&9)" to executor
    send "&7 %all players in loop-player's world%" to executor

upload_2018-6-8_19-59-20.png

When im in the same world with the 2nd player, i think that's happened 5 times if 5 players are online, any help?

(Sorry for my bad english)
 
hmm.. I dont know what are you trying to make but if you are want to send message for every single player than use:
code_language.skript:
loop all players:
    send "&9(&6%loop-player's world%&9) (&6%number of all players in loop-player's world%&9)" to loop-player
    send "&7 %all players in loop-player's world%" to loop-player
and if its only for admis or idk who, just for one player than use:
code_language.skript:
send "&9(&6%player's world%&9) (&6%number of all players in player's world%&9)" to player
send "&7 %all players in player's world%" to player
and dont use "executor" with world to avoid errors because you can execute command by console and console is not in any world
 
hmm.. I dont know what are you trying to make but if you are want to send message for every single player than use:
code_language.skript:
loop all players:
    send "&9(&6%loop-player's world%&9) (&6%number of all players in loop-player's world%&9)" to loop-player
    send "&7 %all players in loop-player's world%" to loop-player
and if its only for admis or idk who, just for one player than use:
code_language.skript:
send "&9(&6%player's world%&9) (&6%number of all players in player's world%&9)" to player
send "&7 %all players in player's world%" to player
and dont use "executor" with world to avoid errors because you can execute command by console and console is not in any world
I'm not sure, but I think he has problems with the repetition of that message
He's online with a 2nd player, and the message repeats itself 2 times, if he was online with a 5th player, message would repeat itself 5 times
 
yes.. because he is executor.. and he made loop that repeats 5 times and sends same message to himself.. so he need to make it sends to every player or just dont use loop and send it only to him only
 
Status
Not open for further replies.