Godely
Member
- Joined
- Aug 19, 2007
- Messages
- 233
- Reaction score
- 16
Code:
function getMarryStatus(player)
local stat = db.getResult("SELECT FROM `players` WHERE `marrystatus` = " .. player .. ";")
local info = stat:getDataInt("id")
if info ~= 0 then
return info
else
return 0
end
end
Can someone tell me what is wrong with this function? I'm getting the error "Result Not Set" on the console ;s