Help please

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

nicoxdry

Member
Mar 22, 2017
27
0
1
21
So I'm trying to make a scripts for making a /Vote command which will send the player the websites, but i haven't been able to make it work it doesn't let send multiple lines in the same command.
This is what I'm using
code_language.skript:
command /Vote:
    trigger:
           if player has permission "vote.gg":
        send "&7=========&7[&6&lG&c&lG&7]&7========="
                send "&f&o1. &6&lPMC&f: http://www.planetminecraft.com/server/gaminggambit/vote/"
                send "&f&o2. "
                send "&f&o3. "
                send "&f&o4. "
                send "&f&o5. "
                send "&7=================="
 
Hi, you wrote wrong your code at Line 4.
Please read the help format before posting. A post tittled "help please" is a bit annoying. Hope you solve the issue.
 
So I'm trying to make a scripts for making a /Vote command which will send the player the websites, but i haven't been able to make it work it doesn't let send multiple lines in the same command.
This is what I'm using
code_language.skript:
command /Vote:
    trigger:
           if player has permission "vote.gg":
        send "&7=========&7[&6&lG&c&lG&7]&7========="
                send "&f&o1. &6&lPMC&f: http://www.planetminecraft.com/server/gaminggambit/vote/"
                send "&f&o2. "
                send "&f&o3. "
                send "&f&o4. "
                send "&f&o5. "
                send "&7=================="

You just failed with the tabs/breaks.
Next time use 4 spaces or one tab.
:emoji_wink:

code_language.skript:
command /Vote:
    trigger:
        if player has permission "vote.gg":
            send "&7=========&7[&6&lG&c&lG&7]&7========="
            send "&f&o1. &6&lPMC&f: http://www.planetminecraft.com/server/gaminggambit/vote/"
            send "&f&o2. "
            send "&f&o3. "
            send "&f&o4. "
            send "&f&o5. "
            send "&7=================="
 
I don't know how many times I have to say this. You don't have to use the send/broadcast effect multiple times, both effects support multiple strings as multiple senders, the following:
code_language.skript:
send "&7=========&7[&6&lG&c&lG&7]&7=========", "&f&o1. &6&lPMC&f: http://www.planetminecraft.com/server/gaminggambit/vote/", "&f&o2. ", "&f&o3. ", "&f&o4. ", "&f&o5. " and "&7=================="
is fine.
 
Last edited by a moderator:
If this post haven't been solved yet, then try to make more spaces for each new broadcast. So first will have 1 space in the broadcast message, the next bc will have 2 spaces and so on. sometimes the script read the bc as the same if there is not a new message.
 
Status
Not open for further replies.