This is the code I need help with.
function SQLPLAYER:SelectCallback( res, status, error )
local NewPlayer = #res == 0
if NewPlayer then
self:InsertPlayer()
self:DefaultValues()
else
local Result = res[1]
for id, column in pairs( GmSQL:GetColumns() ) do
local Response = column:GetSelectCallback()
if Result[ Response ] then
column:OnSelect( self.Player, Result[ Response ] )
end
end
self.Connected = true
end
Error I get.
[server\mysql\player.lua:94] attempt to get length
of local 'res' (a boolean value)
As your question/request is related to LUA you should consider taking a look at the Facepunch [URL="http://facepunch.com/forums/65"]LUA Section[/URL]. LUA Developers ain't very active in the Help & Support section so you should try to post a thread in the Question or Request sub-forums of the Facepunch [URL="http://facepunch.com/forums/65"]LUA Section[/URL]!
Sorry, you need to Log In to post a reply to this thread.