Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- using Lua;
- namespace bot
- {
- class Program
- {
- static void Main(string[] args)
- {
- Lua lua = new Lua();
- lf = new LuaFunctions();
- lua.RegisterFunction("print_s",lf,lf.GetType().GetMethod("print_s"));
- try
- {
- lua.DoFile("script.lua");
- }
- catch(Exception err)
- {
- Console.WriteLine("Lua error : "+err.Message);
- System.Environment.Exit(1);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement