if arg<1: not working

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

entwickeln

Member
May 11, 2022
40
0
6
21
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
[doublepost=1653315660,1653315588][/doublepost]
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
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
 
The med
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
[doublepost=1653315660,1653315588][/doublepost]
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
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:
Command /money [<integer>]:
    Trigger:
        If arg 1 is set:
            #code
        Else:
            Message "custom message"
 
Status
Not open for further replies.