01-09-2014, 02:50 AM
I tried to use mysql in lua:
Then it comes when i start the server this:
[17:45:54] LUA: 2 - error loading module 'luasql.mysql' from file '/usr/local/lib/lua/5.1/luasql/mysql.so':
dynamic libraries not enabled; check your Lua installation
[17:45:54] Error in plugin CryptoPermissions in file Plugins/CryptoPermissions/onlogin.lua
I don't know how can i activate dynamic libraries..
Code:
require "luasql.mysql"
function OnPlayerJoined(Player)
env = assert (luasql.mysql())
con = assert (env:connect"my_db")
end
Then it comes when i start the server this:
[17:45:54] LUA: 2 - error loading module 'luasql.mysql' from file '/usr/local/lib/lua/5.1/luasql/mysql.so':
dynamic libraries not enabled; check your Lua installation
[17:45:54] Error in plugin CryptoPermissions in file Plugins/CryptoPermissions/onlogin.lua
I don't know how can i activate dynamic libraries..