Jump to content


Any Assistance


3 replies to this topic

#1 Tyler2499

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 22 August 2009 - 11:49 AM

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.

#2 Blaatzorrr

    Young Padawan

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Html,CSS,Javascript,PHP&Mysql and more =)

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 :)

#3 Tyler2499

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 30 August 2009 - 08:30 PM

Alright, say after week 1 the standings are:
  • Racer2
  • Racer3
  • racer1
  • racer5
Then we have another race and after week 2 the standings are:
  • Racer3
  • Racer2
  • Racer5
  • Racer1
What i want to show is the position change in points.
Ex.
  • Racer3 +1
  • Racer2 -1
  • Racer5 +1
  • Racer1 -1


#4 NDBoost

    Young Padawan

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:Tempe, AZ

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