#need help with multiples arguments
1 messages · Page 1 of 1 (latest)
Well if you run just /time the command wont run cause you don't have the arguments
Also why you have stop in every condition?
Why not just make the other ones else ifs
i dont like the structure of various ifs and elses
But you have it anyways
yeah but its not indexed, i dont know how to explain
like
all of ifs are in the same indention
Literally just remove the stops
And add else before all ifs except the first one
Yes
thats what i do not understand, the last argument is the wrong, right? there is no player called abcde, so why do i get the arg-2 error message
You sure you spelled defensores right?
Or reloaded the file
Bc it works for me
Wait no nvm
wtf
yes i guess, i even reloaded the server
Oh ik whats wrong
Since the arg-3 is optional
and it wants a player
It will think arg-2 is defensores abcde
And not just defensores
oh, the skript count empty spaces?
thats really bad
ok so, changing player to be needed, the error messages changes but does not show mine message, so the command wont run if player does not exist?
add set {_arg2::*} to arg-2 split at " " at very start before any conditions
Then just check {_arg2::1} instead of arg-2
what it does?
It cuts the arg-2 where the space is
So {_arg2::1} will only be stuff before the space
So in this it would defensores