• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Bug (?)

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
 
Try this one:

PHP:
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
stat:free()
end
 
buugha7.jpg


Here is the bug /\
 
Back
Top