Hello. I have this code for rewardedVideo in adListener event:
elseif event.phase == "reward" then db:exec([[UPDATE data SET cash=cash+100;]]) end
When I click button, then ad starts and after that I get reward.
But what I can do if I want 2 buttons with different rewards? For example - first one gives 50 dollars, second one gives 100 dollars. Buttons and adListener aren’t in the same scene.
Does anybody have an idea?