"; for ($pi=1; $pi <= $maxturns; $pi++) { if ($actiontype[$turn + $pi] == 0) { $hourok = true; if (($buildopenat <> 0) and ($buildcloseat <> 0)) { $hournb = GiveDate($turn + $pi, "hournb"); if (!(($hournb >= $buildopenat) and ($hournb <= $buildcloseat))) { $hourok = false; } } if ($hourok) { echo "