Hello everyone,
I am trying to create a forum where an admin could input the following information in a database.
I already have a users system. I want to call my users from the database and sort them by their points, and if there are no points then simply by their name or id.
I am trying to create a points system
- I want a system that can calculate the total points for a game based on the number of players.
- For instance, if there are 50 players and each player gets 1000 points, then the total points would be 50000
- I want this figure to be divided up amongst the top 10 finishers based on a percentage of the total points.
- This is a basic payout structure-
1st=30%
2nd=20%
3rd=12%
4th=%10
5th=%8
6th=%6
7th=%5
8th=%4
9th=%3
10th=%2
- I also want to give each user that played 1000points
- I would like there to be a checkbox for each user to determine whether or not they played. idealy, the amount of players checked could not exceed the total players entered to calculate the totalpoints.
- I would then need a way of placing the top 10 finishers.
- I figured I could just have a drop down menu with a place from 1-10 with a default setting of 0
- There would have to be a function i guess to calculate the amount of points each place earns.
- I then want to add the users points to their previous figure, not simply insert the new data into the database because it would overwrite the existing amount of points.
Anyone willing to help? I am no php guru, but I know html and css very well and I am having a hard time figuring out how to code this!
Help with user points system!
Moderator: General Moderators