ok this script is a copy of the KoC clone turns.php that is required to make the turns go cna anyone tell me what is wrong by replying to me in an email to
crmrchnt@gmail.com
turns.php
DefenseAction == $b->DefenseAction) return 0;
return ($a->DefenseAction > $b->DefenseAction) ? -1 : 1;
}
function atSort ($a, $b) {
if ($a->StrikeAction == $b->StrikeAction) return 0;
return ($a->StrikeAction > $b->StrikeAction) ? -1 : 1;
}
function covSort ($a, $b) {
if ($a->CovertAction == $b->CovertAction) return 0;
return ($a->CovertAction > $b->CovertAction) ? -1 : 1;
}
function rankFloat ($a, $b) {
if ($a->RankFloat == $b->RankFloat) return 0;
return ($a->RankFloat < $b->RankFloat) ? -1 : 1;
}
include "vsys.php";
deleteOldUsers();
$users=getActiveUsers("ID, race, fortificationLevel, siegeLevel, currentSpySkill, trainedAttackSold, trainedAttackMerc, trainedDefSold, trainedDefMerc, untrainedSold, untrainedMerc, spies ");
for ($i=0; $i