Hello again,
I am currently trying to figure out how to gsub out a bunch of words if a specific character is in that line.
I've found some solutions in other languages, but not Lua and I can't quite figure out how to convert it over.
Here's one of the C# solutions.
And here's my failed attempt.. (although I never actually tested it)
Probably needs to be regex, but figured it wouldn't work anyways.
-Extra question since I'm apparently limited to 1 thread, although this probably doesn't need its own thread, and also cannot make anymore replies (Cannot create more threads today): Anyways, when is a plugin too big? Is that possible? I'm just wondering because my plugin has now reached over 6000 lines of code. Will I be able to keep going with it, or will I have to eventually split it up into multiple plugins?
I am currently trying to figure out how to gsub out a bunch of words if a specific character is in that line.
I've found some solutions in other languages, but not Lua and I can't quite figure out how to convert it over.
Here's one of the C# solutions.
string line = line.Substring(A.IndexOf('>') + 1);
And here's my failed attempt.. (although I never actually tested it)
line = string.gsub (line, ">", IndexOf(">") + 1)
Probably needs to be regex, but figured it wouldn't work anyways.
-Extra question since I'm apparently limited to 1 thread, although this probably doesn't need its own thread, and also cannot make anymore replies (Cannot create more threads today): Anyways, when is a plugin too big? Is that possible? I'm just wondering because my plugin has now reached over 6000 lines of code. Will I be able to keep going with it, or will I have to eventually split it up into multiple plugins?