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.

Help please

Discussion in 'Skript' started by nicoxdry, Mar 27, 2017.

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

    nicoxdry Member

    Joined:
    Mar 22, 2017
    Messages:
    27
    Likes Received:
    0
    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 (Skript):
    1. command /Vote:
    2.     trigger:
    3.            if player has permission "vote.gg":
    4.         send "&7=========&7[&6&lG&c&lG&7]&7========="
    5.                 send "&f&o1. &6&lPMC&f: http://www.planetminecraft.com/server/gaminggambit/vote/"
    6.                 send "&f&o2. "
    7.                 send "&f&o3. "
    8.                 send "&f&o4. "
    9.                 send "&f&o5. "
    10.                 send "&7=================="
    11.        
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    You just failed with the tabs/breaks.
    Next time use 4 spaces or one tab.
    :emoji_wink:

    Code (Skript):
    1. command /Vote:
    2.     trigger:
    3.         if player has permission "vote.gg":
    4.             send "&7=========&7[&6&lG&c&lG&7]&7========="
    5.             send "&f&o1. &6&lPMC&f: http://www.planetminecraft.com/server/gaminggambit/vote/"
    6.             send "&f&o2. "
    7.             send "&f&o3. "
    8.             send "&f&o4. "
    9.             send "&f&o5. "
    10.             send "&7=================="
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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 (Skript):
    1.  
    2. 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=================="
    3.  
    is fine.
     
    #4 ShaneBee, Mar 31, 2017
    Last edited by a moderator: Mar 31, 2017
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Most of people want use multiple broadcast/send times, because so can we look better instead like your'e doing.
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    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.
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    line 4 error, you need one tab more for use correctly "send"
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Thanks to everyone i was able to fix it :emoji_grinning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...