[CODE]
function User_Get( SteamID )
local query = MySQL:query("SELECT ID FROM users WHERE steamid = '"..SteamID.."'")
local out
function query.onSuccess( q, data )
out = table.Count(data)
end
function query.onError( q, err, sql )
print(err)
print(sql)
end
query:start()
print("fun")
print(out)
return out
end[/CODE]
The following code returns nil? But there is obviously a row in the DB. And when I print table.Count(data) in onSuccess it comes out 1. Why is this?
Sorry, you need to Log In to post a reply to this thread.