Hi ! i'm in server side and have this error : SCRIPT ERROR: @core/server.lua:13: attempt to index a nil value (global 'MySQL')
My Server code.. Have you some idea why Mysql return nil each time ?
Yes in my Manifest @mysql-async/lib/MySQL.lua is in the first.
AddEventHandler('playerConnecting', function(playerName, setKickReason)
identifiers = GetPlayerIdentifiers(source)
for i in ipairs(identifiers) do
print('Player: ' .. playerName .. ', Identifier #' .. i .. ': ' .. identifiers[i])
print(identifiers[i])
if i == 1 then
MySQL.Async.insert('INSERT INTO players (`license`) VALUES (@licence,)',
{ ['licence'] = identifiers[i]},
function(id)
print(id)
end
)
end
end
end)
Hi ! i'm in server side and have this error : SCRIPT ERROR: @core/server.lua:13: attempt to index a nil value (global 'MySQL') My Server code.. Have you some idea why Mysql return nil each time ? Yes in my Manifest @mysql-async/lib/MySQL.lua is in the first.