Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » PHP help
Uniqs:
226
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Where settings are saved? Fedex tool »
« Dreamweaver - Multiple Authors Problem  

cdog
Boo
Premium
join:2001-10-11
Chicago, IL
clubs:

PHP help

Hi. I am creating a script for a tournament website i am building for a racing game.

But of course I've run into a snag

the way it works is this

the tournament can have minimum 1 rider to maximum 144

each race room can have maximum 12 riders

the script i have auto-creates the first set of races "heats" perfectly.

the problem i am running into is with the 2nd set of races "semis"

for the semis i take up to maximum top 48 riders from heats. my script works great if i have an even amount of riders going into each semi (max 4 semi rooms at 12 riders each room)

here is an example with an even amount of riders per semi.
»onitracing.net/test.php?totalriders=144

now here is an example of when i don't have the same amount of riders in each semi.
»onitracing.net/test.php?totalriders=76

as you can see it can't properly calculate the riders in each heat.

the thing making it so hard is i want the positions to be staggered from each heat. meaning i don't want all 1st place to go to semi 1, 2nd place to semi 2 etc. i want them to be spread out evenly to each semi.

here is the script. i have been working on it for 2 days and it's driving me insane now.

»cdog.pastebin.com/m7a421e6

to see how the script reacts with different amounts of riders just change totalriders in the url to anything from 1-144
--
If what ya got is perfect and you always want better. Happiness will never come. - [Have Some Fun] -
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersWhere settings are saved? Fedex tool »
« Dreamweaver - Multiple Authors Problem  


Saturday, 05-Dec 08:16:33 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [163] Comcast Releasing Promised Usage Meter
· [145] Avast Antivirus Has Gone Mad
· [126] Comcast Makes NBC Universal Acquisition Official
· [104] Graduate Student Unveils Sprint's GPS Sharing With Feds
· [101] Google Invades ISP, OpenDNS Turf With Google Public DNS
· [92] The Bandwidth Hog Does Not Exist
· [84] FCC Ponders Moving From PSTN To IP Voice
· [81] Latest Consumer Reports Survey Not Kind To AT&T
· [79] New Bill Aims To Limit ETFs
· [74] Sprint Defuses GPS Privacy Media Bomb
Most people now reading
· False positive in Avast! or is it real? [Security]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Windows 7 boot manager editing questions [Microsoft Help]
· DNS options, what are YOU using? [TekSavvy]
· [Snow Leopard] NFS Mounts - no more Directory Utility [All Things Macintosh]
· [Newsgroups] Newzleech down? [Filesharing Software]
· UPS - What do you people think happened? [General Questions]
· Road Runnner up to 50 mbps is ready ! [Road Runner]
· IPComms Free DIDs now with sip registration maybe?? [VOIP Tech Chat]
· Evading throttling with uTP / uTorrent 1.9a [TekSavvy]