I have This Code
var CountItems = ""; for (var i = 0; i < args.Count; i++) { if(i == 0){ CountItems += args.itemType; } if(i > 0){ CountItems += "," + args.itemType; } } log.debug(CountItems); if(FirstitemInstance != null){ server.ConsumeItem({ PlayFabId: args.ID, ItemInstanceId: FirstitemInstance , ConsumeCount: args.Count }); var result = server.GrantItemsToUser({ // In your game, this should just be a constant CatalogVersion : "Items", PlayFabId : args.IslandID, ItemIds : [CountItems] }); log.debug(result); }
This Gives me an error
but This Don't
umeCount: args.Count }); var result = server.GrantItemsToUser({ // In your game, this should just be a constant CatalogVersion : "Items", PlayFabId : args.IslandID, ItemIds : [8,8] }); log.debug(result); }