This snippet looks to only load variables. What are you ultimately posting to the screen that's currently wrong? $np_time which I'm guessing is "next pick time"?
Announcement
Collapse
No announcement yet.
Draft Discussion, Chatter, etc Thread (Files updated thru 7.21)
Collapse
X
-
The five sections at the bottom are what control the different draft time limits. >65 meaning the first two rounds. I had to goof around with those numbers since we changed the limits. I'll look at it again later, but right now I have to write a paper. Wichita will have until 10am eastern tomorrow to pick."Larry Deasoooooooooooooooooon" -- Phil Jenkins
Comment
-
hmmnnn
you commented out a portion that adds 5 hours to the time in the code. Is that it? That'd be 10:33am but I can see you having rounded since he had time today.
Also in this part:
$cur_pick = 1183183200;
I think the "1183183200" is last offseason's hardcoded timestamp. However that doesn't look to be the issue at this point as it appears to be initialization code and the ball is already in play now.Last edited by JesterBlaze; 12-08-2007, 10:31 PM.
<a href="http://glb2.warriorgeneral.com/game/signup.pl?ref=10223"><img src="http://goallineblitz.com/images/game/design/glb_badge-180x60.gif" /></a>
IFL Champions: 2011, 2013, 2022, 2023.
Comment
-
I think this might be how it's supposed to be. At least for the 1st round and I'm sure you can change the rest. It looks like you want to take $cur_pick_base to start your math and not $cur_pick_time when working with off hours. Or I could be wrong as I can't test it.
if ($overall < 65) {
if ($cur_pick_hour < 6) {
$np_time = ($cur_pick_base + 32400); // +9 hours
} else {
if ($cur_pick_hour < 18) {
$np_time = ($cur_pick_time + 10800); // +3 hours
} else {
$np_time = ($cur_pick_base + 118800); // +1 day +9 hours from base date of pick made before midnight
}
}
<a href="http://glb2.warriorgeneral.com/game/signup.pl?ref=10223"><img src="http://goallineblitz.com/images/game/design/glb_badge-180x60.gif" /></a>
IFL Champions: 2011, 2013, 2022, 2023.
Comment
-
Ever saw a player you didn't need but just couldn't pass up???2005 AC North Division Champions
2007 AC North Division Champions
2008 AC North Division Champions
2009 AC North Division Champions
2010 AC North Division Champions
2010 American Conference Champions

Comment
-
One problem is that the 1st value (32400) and the 3rd value (118800) of each chunk were all the same in the original code.Originally posted by JesterBlaze View PostI think this might be how it's supposed to be. At least for the 1st round and I'm sure you can change the rest. It looks like you want to take $cur_pick_base to start your math and not $cur_pick_time when working with off hours. Or I could be wrong as I can't test it.
if ($overall < 65) {
if ($cur_pick_hour < 6) {
$np_time = ($cur_pick_base + 32400); // +9 hours
} else {
if ($cur_pick_hour < 18) {
$np_time = ($cur_pick_time + 10800); // +3 hours
} else {
$np_time = ($cur_pick_base + 118800); // +1 day +9 hours from base date of pick made before midnight
}
}"Larry Deasoooooooooooooooooon" -- Phil Jenkins
Comment
-
I hope G William Hodges turns out. I had him as very underrated. I took a chance last year on a non-combine draft pick (Carlton Nitschke) in the early second round and he turned out great. If Hodges is anything close to him, I'll be happy.Two-time IFL Champion (2014, 2015)
Comment
-
I didn't even look at guards as I have 3 good ones but Hodges, in hindsight, looks amazing. You might've done it again.
<a href="http://glb2.warriorgeneral.com/game/signup.pl?ref=10223"><img src="http://goallineblitz.com/images/game/design/glb_badge-180x60.gif" /></a>
IFL Champions: 2011, 2013, 2022, 2023.
Comment
-
Yeah, I was targeting Hodges for the 2-1 pick since the moment the draft class was unveiled. I figured people would pass on most non-combine players in the first round. I do not believe that Hodges would last until my 2-22 pick, so I had to take him now.Originally posted by JesterBlaze View PostI didn't even look at guards as I have 3 good ones but Hodges, in hindsight, looks amazing. You might've done it again.
So for my first two picks, my draft has been exactly how I wanted it to turn out. We'll see if we can go 3 for 3 later today. Maybe even 4 for 4 if we get that far.
Two-time IFL Champion (2014, 2015)
Comment
-
Yuck...first round had few gems in hindsight...Donovan looks like the better QB, tho, not what either of us was hoping for. CB Jacobs looks good. 2k7 Draft is exciting and frustrating. Hoping for some late round booms. Makes you think twice about trading away a proven veteran for draft picks in the future.MIAMI VICE - 2074
Comment

Comment