gamestore/init.lua
preysystem.lua
an error
Tried with
And some other options but didn't worked out. Above thosefunctions there are plenty functions for processing store offers and each and everyone work just fine only this one is not. Any ideas ?
Lua:
function GameStore.processPreyBonusReroll(player, offerCount)
player:addBonusReroll(offerCount)
end
Lua:
function Player.addBonusReroll(self, value)
db.query("UPDATE players SET bonus_reroll = bonus_reroll + " ..value.. " WHERE id = " ..self:getGuid())
end
Tried with
Lua:
function GameStore.processPreyBonusReroll(cid, offerCount)
player = Player(cid)
player:addBonusReroll(offerCount)
end