Ok well i want this function to get Rebirths from players.
- - - Updated - - -
Fixxed Thanks for the help
Lua:
function getPlayerRebirth(cid)
local Info = db.getResult("SELECT `Rebirth` FROM `players` WHERE `id` = " .. getPlayerId(cid) .. " LIMIT 1")
if Info:getID() ~= LUA_ERROR then
local Rebirth= Info:getDataInt("Rebirth")
Info:free()
return Rebirth
end
return LUA_ERROR
end
- - - Updated - - -
Fixxed Thanks for the help