[DiscordArchive] ``` local itemEntry, itemCount = tonumber(tostring(string.gsub(command, "ttest ","", 1))), tonumber
[DiscordArchive] ``` local itemEntry, itemCount = tonumber(tostring(string.gsub(command, "ttest ","", 1))), tonumber
Archived author: Clotic • Posted: 2022-03-18T15:33:17.692000+00:00
Original source
``` local itemEntry, itemCount = tonumber(tostring(string.gsub(command, "ttest ","", 1))), tonumber(tostring(string.gsub(command, "ttest ","", 2)))``` this is not how it works right?
Archived author: Foe • Posted: 2022-03-18T15:35:38.026000+00:00
Original source
Correct, you can look at something like my command system for an example on how to deal with strings
Archived author: Foe • Posted: 2022-03-18T15:36:33.168000+00:00
Original source
https://github.com/Foereaper/PublicScrip...andler.lua
[Embed: PublicScripts/CommandHandler.lua at master · Foereaper/PublicScripts]
A repository for storing public script releases. Contribute to Foereaper/PublicScripts development by creating an account on GitHub.
https://github.com/Foereaper/PublicScrip...andler.lua
Archived author: Foe • Posted: 2022-03-18T15:37:09.860000+00:00
Original source
The splitstring function is a helper function you can use to split a string based on delimiters, then returns a table with all the substrings in order
Archived author: Clotic • Posted: 2022-03-18T15:37:34.036000+00:00
Original source
Alright ill check that out
Archived author: Clotic • Posted: 2022-03-18T15:52:11.264000+00:00
Original source
Got it working nice ty for codeblock
Archived author: Foe • Posted: 2022-03-18T16:04:54.845000+00:00
Original source