Answer the question
In order to leave comments, you need to log in
How to create a statistics system for the game, and for the premium store?
Maybe I'm not looking for it in the internet, I didn't find anything, there is a game (more precisely, it is being finalized).
For this game, you need to create statistics for the premium store, how many products were sold, what products are popular, and much more. How is this implemented? Databases, websites...
Answer the question
In order to leave comments, you need to log in
Let's say for how many goods were sold:
There is a goods.
There is a purchase counter.
If the product is sold, then add one to the purchase counter.
There is nothing complicated here. You just need to understand how it works.
With popular item:
There are multiple items.
There is a counter of their popularity.
There is a function that selects the most popular.
If you bought a product, add one to its counter, and so on.
The function then looks through all the results, selects the largest one, and makes it popular.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question