Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

iADs Problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • iADs Problem

    Hey guys!

    I tried to implement iADs into my game but when i Compile Scripts it stops with an error: ...Development\Src\Engine\Classes\iAdscontroller.u c(17) : Error, Unrecognized type 'PlatformInterfaceDelegateResult'
    I'm working with UDK 2012-03.
    Also here's my code:

    Code:
    class iAdscontroller extends PlayerController;
    
    var InGameAdManager AdManager;
    
    simulated event PostBeginPlay()
    {
    super.PostBeginPlay();
    AdManager = class PlatformInterfaceBase.static.GetInGameAdManager();
    if (AdManager != none)
    { 
    AdManager.AddDelegate(AMD_ClickedBanner, OnUserClickedAdvertisement);
    AdManager.AddDelegate(AMD_UserClosedAd, OnUserClosedAdvertisement);
    AdManager.ShowBanner(true);
    }
    }
    
    function OnUserClickedAdvertisement(const out PlatformInterfaceDelegateResult Result)
    {
    `log("MobilePC::OnUserClickedBanner");
    }
    
    event OnUserClosedAdvertisement(const out PlatformInterfaceDelegateResult Result)
    {
    `log("MobilePC::OnUserClosedAd");
    }
    
    event Destroyed()
    {
    super.Destroyed();
    
    if (AdManager != none)
    {
    AdManager.ClearDelegate(AMD_ClickedBanner, OnUserClickedAdvertisement);
    AdManager.ClearDelegate(AMD_UserClosedAd, OnUserClosedAdvertisement);
    }
    }
    Any Help would be great!
Working...
X