Solved Masssay 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 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.

PanHack

Active Member
Dec 18, 2019
143
8
18
24
so i get 2 errors and i can't understand them.
Code:
command /masssay [text]:
    aliases: /ms
    trigger:
        loop all players:
            force all players say "arg 1"
        if argument 1 is not set
        send "&cYou must fill what you want to say!"
        stop
errors :
'force all players say "arg 1"' is not a boolean (yes/no) (ms.sk, line 5: force all players say "arg 1":')
'if' is not a type (ms.sk, line 6: if argument 1 is not set')
Thank you
 
1) 'force all player to say`
2) if a condition starts with `if`, the line needs to end with a colon, and the next line needs to be indented
 
ok so my code should look like that ?
Code:
command /masssay {[text]}:
    aliases: /ms
    trigger:
        loop all players:
            force all players to say "%arg 1%"
        if arg 1 is not set:
            send "&cYou must fill what you want to say!"
            stop
but i still get errors
1) 'force all players to say "%arg 1%"' is not a boolean (yes/no) (ms.sk, line 5: force all players to say "%arg 1%"')
2) This command doesn't have any arguments (ms.sk, line 6: if arg 1 is not set:')
 
1) 'force all players to say "%arg 1%"' is not a boolean (yes/no) (ms.sk, line 5: force all players to say "%arg 1%"')
Which version of Skript are you using? This effect was added in 2.3

2) This command doesn't have any arguments (ms.sk, line 6: if arg 1 is not set:')
"command /masssay {[text]}:" <-- im not really sure why you added {} here?!?!
 
Which version of Skript are you using? This effect was added in 2.3


"command /masssay {[text]}:" <-- im not really sure why you added {} here?!?!
2.1.2
what should i use then
i have SKQuery and wildskript plugins should i add more ?
[doublepost=1578749423,1578748060][/doublepost]ok problem solved
Code:
command /masssay <text>:
    aliases: /ms
    trigger:
        loop all players:
            make all players say "%arg 1%"
            if arg 1 is not set:
                send "&cYou must fill what you want to say!"
                stop
Had to use SKQuery and instead of [text] had to use <text>
 
Status
Not open for further replies.