function onSay(cid)
nick = db.query("SELECT `name` FROM `players`, ORDER BY `level` LIMIT 1;")
print("The best player is ".. nick.. "")
return true
end
function onSay(cid)
nick = db.query("SELECT `name` FROM `players` ORDER BY `level` WHERE `vocation` = 4 OR `vocation` = 8 LIMIT 1;")
print("The best knight is ".. nick .. "")
return true
end
function onSay(cid)
local res = db.query("SELECT `name` FROM `players`, ORDER BY `level` LIMIT 1;")
if res:getID() ~= -1 then
print("The best player is ".. res:getDataString("name").. "")
res:free()
end
return true
end
function onSay(cid)
local res = db.query("SELECT `name` FROM `players` ORDER BY `level` WHERE `vocation` = 4 OR `vocation` = 8 LIMIT 1;")
if res:getID() ~= -1 then
print("The best knight is ".. res:getDataString("name") .. "")
res:free()
end
return true
end
function onSay(cid)
print(db.getResult("SELECT `name` FROM `players` ORDER BY `level` DESC LIMIT 1"):getDataString("name"))
return true
end