Ok, I'm going around and around on this. I must be doing something stupid.
local files, directories = file.Find("bancfg/*", "DATA")
for _, f in pairs(files) do
ULib.execFile( 'data/bancfg/'..f, "GAME" )
end
--RunConsoleCommand("writeid")
ULib.consoleCommand( "writeid\n" )
inside ../garrysmod/data/bancfg are a series of banned_user.cfg and banned_ip.cfg files that I've copied from other servers.
Everything executes without error. I can put print statements in and see the correct file path. If I add extraneous chars to the file path, it throws the expected "invalid cfg file" message. However, the banid statements inside the cfg files do not appear to be executing. What am I doing wrong?
Thanks.