01-10-2014, 03:07 AM
(01-09-2014, 04:51 PM)xoft Wrote: You're right, the Lua compilation has been butchered. Working on it now.
Please try out the LuaDlFix branch, it should provide a fix for *nix versions.
Thanks now MCServer find luasql.
Current error:
[16:34:11] LUA: 2 - Plugins/Permissions/onlogin.lua:5: attempt to index global 'luasql' (a nil value)
[16:34:11] Error in plugin Permissions calling function <callback>()
Code:
function OnPlayerJoined(Player)
-- load driver
require "luasql.mysql"
-- create environment object
env = assert (luasql.mysql())
-- connect to data source
con = assert (env:connect("luasql-test"))
end
I need to define luasql but how? Do you know this?