• How to make multiple arguments?
    2 replies, posted
Hi, I need an syntak like this !refund <Playername> <Amount>. I saw something on youtube with string.sub but I never can know how long a username is. How can I solve this "problem" And yeah, it isn't a concommand it is with the PlayerSay Hook.
local Arg = string.Explode(" ", 'playername amount') Arg[1] -- playername Arg[2] -- amount
You can also use this because Explode is extension in the "string" library: local tCmd = (" "):Explode("playername amount") print(tCmd[1]) -- playername print(tCmd[2]) -- amount
Sorry, you need to Log In to post a reply to this thread.