Update: I updated the script a little, look at these lines:
From the whole script,
Now, here's the thing. Once the function has been run, I get the following in my console.
function suggestionstart( ply, txt )
local names = file.Read("names/names.txt")
local playors = string.Explode("\n", names)
for k, v in ipairs(playors) do
if string.lower(ply:Nick()) == string.lower(v) then
sOn = 1
timer.Create("sugOn", 2, 1, RunConsoleCommand, "say", "Suggestion Bot is now online! To make a suggestion, type !s <suggestionhere> to make your suggestion.")
Kamikazemelon - :| DrFire
What the hell is this? It's telling me there are 9 characters in my name. But wait, they could be spaces. I check the text file, no spaces, I even do this:
As you can see, trimming it does nothing.
I'm confuzzled. Help?