I am adding a "no ads" purchase into my game, and I'm struggling a bit. So far, I have a function that sets up information.
function iap_setup()
//in app purchases set up
//app name
InAppPurchaseSetTitle ("Lunar Hoops")
//put other in app purchases here
InAppPurchaseAddProductID ("no_ads_lh", 0)
InAppPurchaseSetup()
endfunction
But straight up after launching I get an error message "Cannot add IAP after calling InAppPurchaseSetup()"
This function is only ever called one at the start along with all my other functions that are played once. Anyone ever had the same thing?
Furthermore, where do I go from there? I tried adding iap last year but as usual messed it up.
function iap_no_ads()
InAppPurchaseActivate(0)
endfunction
Where do I go from here?
Finally, when you add products, do their ID'S get assigned one buy one starting from 0? so basically
InAppPurchaseAddProductID ( "coins", 0 ) ID = 0?
InAppPurchaseAddProductID ( "mana", 0 ) ID = 1?
InAppPurchaseAddProductID ( "ads", 0 ) ID = 2?
http://lunarhoops.com/