Give reward to users according to their ranking

Hi everyone I am working in a Quiz app. Users can participate and win cash amounts.

Lets say In a Tournament 100 users can join and the prize money will be Rs 1000

How can i distribute this among Top 100 user where Top 1-10 users will get a good amount and rest of them will get a decent amount.

Is it an earning app:money_mouth_face:

1 Like

EDITED: Please show respect to everyone who is helping on this forum. We are very strict if we suspect the question is about earning apps. So you could have simply said no as @vknow360 was stating. I replaced your text with this explanation.

1 Like

I was just asking.
If your answer is no then I have no problem in helping you.
I am sorry if I have hurt your hard work.
Wait…
Just making a topic does not ensures that you can get answer easily.
Please show what you have tried.It gives anyone an idea about your app and helps us to help you.

1 Like

create 2 list , one for top10 and another for rest of players, and now distribute the money accordingly in 2 list of players

1 Like

Sorry If i was rude to you. I hope you understand why i reacted in that way

You can do something like this.
Store all users ranking in firebase in this way that tag= ranking and value = username .
The get tags list and run for each number from block where from 1 to 10 and reward corresponding user prize and in other for each number from block where from 11 to length of list and reward corresponding user prize.

Note: This method is useful when you use point system using firebase.

1 Like