Jump to content

Please Help I Am Struggling


SkyMining

Recommended Posts

command /sc [<text>]:
    trigger:
        if arg-1 is set:
            make player execute command "/staffchat %arg-1%"
        if arg-1 is not set:
            cancel event
        make player execute command "/staffchat"

im getting this error

image.png.985b5f8484359837d39658f45bf11bb3.png

Link to comment
Share on other sites

That isn't an event. So you can't cancel it. If you want it to do nothing if arg-1 isn't set, just don't have that if statement. It will automatically do nothing since you have a previous if statement checking if arg-1 is set. Or make arg-1 required so the player has to specify arg-1 in order for the command to run.

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...