whitevo
Feeling good, thats what I do.
I found similar questions, but all of them are unanswered and made like year+ ago, so I make new one 
my function:
prints:
Problem is, I want to get the total of all the attempts made against dummy and kills and deaths.
I clearly have more attempts than 1. Why it only takes the first result it sees?
my function:
Code:
function onUse(player, item, frompos, itemEx, topos)
local itemID = item:getId()
local itemAID = item:getActionId()
local highscoreData = db.storeQuery("SELECT attempts, kills, deaths FROM highscores WHERE monster = 'dummy' GROUP BY monster")
local attempts = result.getNumber(highscoreData, "attempts")
local kills = result.getNumber(highscoreData, "kills")
print(attempts)
print(kills)
end
prints:
Code:
1
0
Problem is, I want to get the total of all the attempts made against dummy and kills and deaths.
I clearly have more attempts than 1. Why it only takes the first result it sees?