Hey,
any idea why I get this error?
Corona Simulator[2337:114433] Runtime error
Game/scripts/revmob.lua:284: attempt to compare number with nil
stack traceback:
Game/scripts/revmob.lua:284: in function ‘payload’
Game/scripts/revmob.lua:296: in function ‘payloadAsJsonString’
Game/scripts/revmob.lua:402: in function ‘c’
Game/scripts/revmob.lua:436: in function ‘r’
Game/scripts/revmob.lua:502: in function ‘fetchBanner’
Game/scripts/revmob.lua:1032: in function ‘load’
Game/scripts/revmob.lua:1233: in function ‘createBanner’
Game/scripts/adNetworks.lua:114: in function ‘l’
Game/scripts/revmob.lua:479: in function </Game/scripts/revmob.lua:472>
This is my listener , line 114 is the line with the RevMob.createFullscreen()
[lua]
local revmobListener = function(event)
local eventType = event.type;
local adType = event.ad;
print("Event: " … event.type)
if (eventType == “adReceived”) then
elseif (eventType == “adClicked”) then
elseif (eventType == “adClosed”) then
elseif (eventType == “adNotReceived”) then
elseif (eventType == “sessionIsStarted”) then
revmobFullScreen = RevMob.createFullscreen() --this is line 114
elseif (eventType == “sessionNotStarted”) then
end
end
[/lua]
Even if i try revmobFullScreen = RevMob.createFullscreen(revmobListener) it also gives the same error.
Any help?
Roy.