This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Проблема Redage V3 24/7 Null Object

JohnNewbie

Активный участник
11 Июл 2024
61
1
27
i dont know what went wrong but all the item says null as shown in the picture anyone know the fix ? might be helpful for me Thanks !
My guess the problem is in this code
C#:
 public static void OpenBizShopMenu(ExtPlayer player)
        {
            try
            {
                var sessionData = player.GetSessionData();
                if (sessionData == null) return;
                if (!player.IsCharacterData()) return;
                if (sessionData.BizID == -1 || !BizList.ContainsKey(sessionData.BizID)) return;
                var biz = BizList[sessionData.BizID];
                var jsonData = new List<Fractions.Manager.FracMatsData>();
                int index = 0;
                foreach (var p in biz.Products)
                {
                    var busProductData = BusProductsData[p.Name];
                    if (busProductData.ItemId != ItemId.Debug) jsonData.Add(new Fractions.Manager.FracMatsData(index, Chars.Repository.ItemsInfo[busProductData.ItemId].Name, Chars.Repository.ItemsInfo[busProductData.ItemId].Icon, $"{p.Price}$", (int)busProductData.ItemId));
                    //else if (p.Name == "SIM Card") jsonData.Add(new Fractions.Manager.FracMatsData(index, "SIM Card", "sm-icon-sim", $"{p.Price}$" ));
                    //else if (p.Name == "Lottery ticket") jsonData.Add(new Fractions.Manager.FracMatsData(index, "Lottery ticket", "sm-icon-lotary", $"{p.Price}$" ));
                    index++;
                }
                // Console.WriteLine("" + JsonConvert.SerializeObject(jsonData))
                Trigger.ClientEvent(player, "client.sm.openShop", JsonConvert.SerializeObject(jsonData));
            }
            catch (Exception e)
            {
                Log.Write($"OpenBizShopMenu Exception: {e.ToString()}");
            }
        }



 
Последнее редактирование:

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
1,764
1,305
5
Please provide more information and images of the issue you are experiencing so that we can assist you better in identifying the problem and finding a solution. Thank you.
 

Diamoond

Активный участник
24 Июн 2024
85
0
27
Look in your database
 

Slash

Активный участник
10 Янв 2023
83
3
43


go to the database, find the database named “ra3_main”, then in it find the table named “businesses” and finding the row relating to the desired business id (that is, the one in which the display of product names does not work) and discount the value of the column products.

I also apologize for my English, I use a translator.
 

JohnNewbie

Активный участник
11 Июл 2024
61
1
27
see eveything is ok there