Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-04-04, 02:27 PM
Junior Member
 
Join Date: Apr 2007
Posts: 4
crmrchnt is on a distinguished road
Default help

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
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:34 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.