Hello,
I was trying to implement revmob in my game.
I downloaded the SDK from revmob website and had gone through few revmob samples.
But, I don’t know why, in every sample an error popped up (PLEASE SEE THE SCREENSHOT ATTACHED).
Help please?
EDIT EDIT EDIT
I managed to work with revmob.lua right. It now works fine.
BUT, now I am getting another error. I searched up for this, but found nothing helpful. The error says : “Attempt to index local RevMob(a boolean value)”.
What does this error mean?
My code is as follows:
[lua]
local RevMob = require “revmob”
local REVMOB_IDS = {[“Android”] = “MY ID”}
RevMob.startSessionWithListener(REVMOB_IDS, revmobListener) ----This is where error is flashing ------
local banner = RevMob.createBanner({ x = 50, y = 50, width = 200, height = 40 ,listener = revmobListener })
local revmobListener = function(event)
print("Event: " … event.type)
end
.
.
. (And code continues …)
[/lua]
I tried Revmob.startSession(means without the listener) but it did not work either.
I tried making RevMob global (i.e. removing “local” ), but no luck
Please help with this?