Solved Adding an Error MSG to command

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

WildCam

Member
Feb 1, 2017
2
0
0
Hi there,

I am currently trying to make a command through skript and I am having trouble on having the error not pop up with the "if" statements.

Version: 1.8.8 for skript



Code:
options:
    top: &7&m[-----[&4&nRules&7&m]-----]

command /rules [<text>]:
    trigger:
        if arg-1 is "1":
            send "{@top}&r &7Page 1/2"
            send "&aNo Mini-Mod"
            send "&aNo Spawn Camping"
            send "&aNo Advertising"
            send "&aNo Unapprove Clients (Example: X-ray)"
            send "&aNo Hack Client"
            send "&aNo Spamming"
            send "&aNo Abusing the commands"
            send "&7&m[----------------]"
        if arg-1 is "2":
            send "{@top}&r &7Page 2/2"
            send "&aNo x-ray"
            send "&aNo unapprove clients"
            send "&7&m[----------------]"
        else:
            send "&aError:&r Please specify number."
            send "/rules <number>"

Anyone know how to make "else" statement reads as an error when I not doing "/rules 1" and "/rules 2"?
[doublepost=1505274359,1505273679][/doublepost]Fix it. Thread serves no purpose for my help now.
 
Status
Not open for further replies.