Okay. I was trying to do some modifications to the UnoLimit module from the Ulysses Team.
It worked out pretty well, but one thing didn't work.
[ERROR] .../unolimit/lua/ulib/modules/unoLimit.lua:27: attempt to index global 'server_settings' (a nil value)
The line which is broken (for some reason)
[lua]
a = server_settings.Int( "sbox_max"..str, 0 )
[/lua]
My thoughts was that the global server_settings was replaced in gmod 13?
server_settings was removed due to redundancy, use RunConsoleCommand() instead.
[QUOTE=Wizard of Ass;38389936]server_settings was removed due to redundancy, use RunConsoleCommand() instead.[/QUOTE]
But what I'm trying to is to get the server setting from server.cfg
Example:
In Server.cfg: sbox_maxprops 10
[lua]
server_settings.Int("sbox_maxprops",0)
[/lua]
Where it returns 10.
How am I supposed to do that with RunConsoleCommand? Maybe it's just me?