How to create Configs?
#1
Hellow Smile

I'm just new in lua and don't know how to create configs..
I've searched but no solutions found.
Reply
Thanks given by:
#2
There are multiple ways you can create config files. You can use cIniFile. That way you can create configuration files as .ini files.

Another option could be to use Lua's loadstring or loadfile function. That way you'd have the Lua syntax as a config file. An advantage of that is that you can easily let the admin create arrays and other things in the configuration file itself.

Of course these are just some of the ways you could create config files.

Examples:
cIniFile: Paintball, Bullet
loadstring: WorldEdit, Chatter, Gallery
Reply
Thanks given by:
#3
thanks.
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)