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!


    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.

if arg<1: not working

Discussion in 'Skript' started by entwickeln, May 23, 2022.

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

    entwickeln Member

    May 11, 2022
    Likes Received:
    Hello friends, i tried to make a skript that allows you to make /money (NUMBER
    and it's add you the number that you wrote, this is working perfectly BUT i want to make when someone types
    /money 232 2321 21312 is has to send a message
    I tried using
    if arg >1:
    message "hbsfb" to player
    but It's not working..
    Do i have to work with "is greater than" or something like this?

    pls help
    --- Double Post Merged, May 23, 2022, Original Post Date: May 23, 2022 ---
    The error is: When i type "/money 2 23123 2 3"
    It comes the message from Skript "Corrext usage: /money [<integer>]
    But my message comes when im using the skript normally
  2. Mich

    Mich Active Member

    Jul 15, 2020
    Likes Received:
    The med
    the message correct usage pops up because the command you made only have 1 argument if you want to do a custom message do this instead
    Code (Text):
    1. Command /money [<integer>]:
    2.     Trigger:
    3.         If arg 1 is set:
    4.             #code
    5.         Else:
    6.             Message "custom message"
Thread Status:
Not open for further replies.

Share This Page