Hi, currently I am building a league script of my own. I have most complete but what I would like to do is track a racers position change.
For example, one week RACER #1 is in first place in the standings then after our next race he drops one spot.
It could be me thinking to hard but I really don't know where to start with this. If anyone could point me in the right direction it'd be appreciated, thanks.
Any Assistance
Started by Tyler2499, Aug 22 2009 11:49 AM
3 replies to this topic
#1
Posted 22 August 2009 - 11:49 AM
#2
Posted 30 August 2009 - 05:44 PM
Hm I'm not sure about what you really want to do but I guess you want to build a race game? .. But anyway if you want to make a list for who's number 1, 2 etc. The best thing is give the racer after every race points.. example:
Race 1:
#1.User <- Gets 3 points
#2.Player <- Gets 2 points
#3.Anyone <- Gets 1 points
Race 2:
#1.Anyone <- Gets 3 points
#2.User<- Gets 2 points
#3.Player <- Gets 1 points
Total:
#.User with 5 points
#.Anyone with 4 points
#.Player with 3 points
Understand? And you can do this with as many racers as you want
If you make a field in your database called 'points' and just add the amount of points after the race you need to order the racers with Asc/Desc
Race 1:
#1.User <- Gets 3 points
#2.Player <- Gets 2 points
#3.Anyone <- Gets 1 points
Race 2:
#1.Anyone <- Gets 3 points
#2.User<- Gets 2 points
#3.Player <- Gets 1 points
Total:
#.User with 5 points
#.Anyone with 4 points
#.Player with 3 points
Understand? And you can do this with as many racers as you want
#3
Posted 30 August 2009 - 08:30 PM
Alright, say after week 1 the standings are:
Ex.
- Racer2
- Racer3
- racer1
- racer5
- Racer3
- Racer2
- Racer5
- Racer1
Ex.
- Racer3 +1
- Racer2 -1
- Racer5 +1
- Racer1 -1
#4
Posted 11 September 2009 - 03:05 PM
What RicardoC is explaining would work. If necessary i can work up a quick working example for you.. Just let me know if this is still an issue.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
