I have a few Files I have a game and my Turns dont work any way someone can edit these and then tell me the Problem so that I know what was wrong thanx
This is the thing that shows the next turn It dosnt Show🙁 Please help!
<TR>
<TD style="FONT-SIZE: 8pt; COLOR: black" align=right>Next
Turn:</TD>
<TD style="FONT-SIZE: 8pt"><FONT color=#250202>
<?
$nextTurnMin=getNextTurn($user);
//$nextTurnMin=round($nextTurnMin/30);
echo $nextTurnMin;
?> min</FONT></TD></TR>
This is the thing that makes the Turns go!
function getNextTurn($user){
global $conf;
$info=getCommonInfo();
$lastTurnTime=$info->lastTurnTime;
$thisTime=time("30");
$dif=$thisTime-$lastTurnTime;
//$nextTurn=$dif;
$nextTurnMin=$dif/60;
/*if ($nextTurnMin>$conf["minutes_per_turn"]){
//echo "--------";
$addTurnsF=$dif/($conf["minutes_per_turn"]*60);
$addTurns=floor($addTurnsF);
//$nextTurn1=($addTurnsF-$addTurns)*$conf["minutes_per_turn"];
$nextTurn1=$dif-(($conf["minutes_per_turn"]*60)*$addTurns);
//echo $addTurns."##".$nextTurn1."##".($thisTime-$nextTurn1)."<br>";
$nextTurn=round($nextTurn1/60);
$addTurns+=$user->attackTurns;
addTurns($user->ID,$addTurns,$thisTime-$nextTurn1);
}else*/
{
$nextTurn=round($nextTurnMin);
}
//echo $dif."<br>";
$nextTurn=$conf["minutes_per_turn"]-$nextTurn;
if ($nextTurn<0)$nextTurn=0;
return $nextTurn;//($conf["minutes_per_turn"]-$nextTurn);
}
This is the Cron Code that is in the Cpanel Cron Jobs
/usr/local/bin/php /home/******/public_html/cron.php
Please HELP I am in Dire Need I will give an Awsome account on my game also the turns Count down fro 30Minutes