To use items in your game, create categories and items in the admin site. Every item should belong to a category.
Increase the quantity of owned item by:
[Pankia acquireItemSynchronously:1 quantity:10 onSuccess:^(int64_t newQuantity) { NSLog(@"Increased"); } onFailure:^(NSError* error) { NSLog(@"Error. %@", error); }];
Decrease by:
[Pankia consumeItemSynchronously:1 quantity:10 onSuccess:^(int64_t newQuantity) { NSLog(@"Decreased"); } onFailure:^(NSError* error) { NSLog(@"Error. %@", error); }];
NSLog(@"quanity of item 1: %lld", [Pankia quantityOfItem:1]);
There was an error while loading. Please reload this page.