question

sandfisggames avatar image
sandfisggames asked

GetStoreItems doesn't work

I don't know why but when I try, by cloud script (in the tutorial), run GetItemsCatalog with the same properties it Works... but when I do with this script, never go to GetItemsResultOLT function. It doesn't throw me an exception.

public void GetItemsCatalog()
    {
        PlayFabClientAPI.GetStoreItems(new GetStoreItemsRequest()
        {
            CatalogVersion = "1",
            StoreId = "MainStore"
        },result => GetItemsResultOLT(result), error => LogMessage(error.GenerateErrorReport()));
    }
    private void GetItemsResultOLT(GetStoreItemsResult resultCatalog)
    {
        int f =10;
        foreach (StoreItem CI in resultCatalog.Store)
        {
            if (CI.ItemId.Contains("Skin"))
            {
                skins.Add(CI.ItemId);
                foreach (KeyValuePair<string, uint> prices in CI.VirtualCurrencyPrices)
                {
                    if (prices.Key == "GG")
                    {
                        goldPrices.Add(prices.Key, prices.Value);
                    }
                    else if (prices.Key == "TB")
                    {
                        tobacoPrices.Add(prices.Key, prices.Value);
                    }
                }
            }
        }
    }
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
sandfisggames avatar image
sandfisggames answered

I have solved this error

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image brendan commented ·

For the sake of others that may have issues, what was the fix in your case?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.