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 our 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

Discussion in 'Skript' started by MitchelMH, Sep 10, 2019.

  1. M

    MitchelMH Member

    Joined:
    Sep 10, 2019
    Messages:
    2
    Likes Received:
    0
    Help I have a problem, I try to make one command generate another one already established to make it easier for the players, but I can't give myself a mistake, any solution?

    command /cofre [<player>] [<text>]:
    trigger:
    if arg-1 is a player:
    if arg-2 is a text:
    message "Agregando usuario a tu cofre"
    execute player command "/cmodify %arg-1"

    stop
    --- Double Post Merged, Sep 10, 2019, Original Post Date: Sep 10, 2019 ---
    here my problem was that when executing the command / modify <player>, the user when putting the player did not execute the same command with the player name
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    271
    Likes Received:
    17
    Code (Skript):
    1. execute player command "/cmodify %arg-1%" # you were missing a %
    Also what's the arg-2 for?
     
  3. M

    MitchelMH Member

    Joined:
    Sep 10, 2019
    Messages:
    2
    Likes Received:
    0
    so how would it be to execute the command correctly??
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    271
    Likes Received:
    17
    Code (Skript):
    1. make player execute command "command here"
     
Loading...