Multiverse Player Counter Issue

  • 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.

Keyl0ren12

New Member
Mar 6, 2017
6
0
0
23
Hey, I just want to make a command that gives you informations about a certain world, like how many players are in that world like On command /winfo [<text>] to tell you how many players are in arg-1 ..and i don't know how to code this. Hava any ideeas?
 
code_language.skript:
command /winfo <text>:
 trigger
  set {players.%arg 1%} to number of all players in world "%arg 1%"
  message "There are %{players.%arg 1%}% in world %arg 1%"
 
Last edited by a moderator:
code_language.skript:
command /winfo <text>:
 trigger
  set {players.%arg 1%} to number of all players in world "%arg 1%"
  message "There are %{players.%arg 1%}% in world %arg 1%"
Why are you using global variables? Use local variables if it's never going to be used any where else.
 
No, that is not the actually error. And the error is still:
upload_2017-7-27_16-3-41.png
 
What is this?
i9rV0C5Lur.png

It must be "arg 1" not the one you've set
[doublepost=1501162287,1501162011][/doublepost]If you're changnig lines without sending whole code don't say that "This code is not good at all"
 
Status
Not open for further replies.