array(
'Nowwhatpt' => array(
'Guild' => array(
'Title' => 'Actif',
'Name' => 'les potes âgés',
'Rank' => 6
),
'Mana' => 100,
'Locale' => 'frFR',
...
array(
'Nowwhat' => array(
'Name' => 'Nowwhat',
'Level' => 70,
'Server' => 'Khaz Modan',
'Guild' => array(
'Name' => 'Papy team'
),
'CPprovider' => 'rpgo',
...
$lang['misc']['Rank'] = "Rang";
// Decide upon a main: Highest leveled among those with highest guild rank
$maxrank = 11;
$maxlevel = 0;
foreach($this->chars as $char)
{
if( $char['Guild']['Rank'] < $maxrank )
{
$maxrank = $char['Guild']['Rank'];
}
}
foreach($this->chars as $member_id => $char)
{
aprint($char);
if( $char['Guild']['Rank'] == $maxrank && $char['Level'] > $maxlevel )
{
$maxlevel = $char['Level'];
$mainid = $member_id;
}
}
No Guild given
Fatal error: Cannot instantiate non-existent class: datetime in /home/httpd/vhosts/rage-and-mana.com/subdomains/public/httpdocs/addons/armorysync/inc/armorysyncjob.class.php on line 411
poetter wrote:... What exactly ist the problem?
foreach($this->chars as $char)
{
// if ( isset($char['Guild']['Rank'])) // When using the Armory update, "$char['Guild']['Rank']" isn't defined !!
// {
if( $char['Guild']['Rank'] < $maxrank)
{
$maxrank = $char['Guild']['Rank'];
}
// }
}
foreach($this->chars as $member_id => $char)
{
// if (isset($char['Guild']['Rank'])) // When using the Armory update, "$char['Guild']['Rank']" isn't defined !!
// {
if( $char['Guild']['Rank'] == $maxrank && $char['Level'] > $maxlevel )
{
$maxlevel = $char['Level'];
$mainid = $member_id;
}
// }
// else
// {
// if ($char['Level'] > $maxlevel)
// {
// $maxlevel = $char['Level'];
// $mainid = $member_id;
// }
// }
}
Equisetum wrote:... where exactly does armory.class.php go? Maybe I have that in the wrong spot...
$this->data['config']['update_type']
$lang['admin']['update_type'] = 'Update type|Specify on which trigger types to update main/alt relations.';
date_create and other DateTime related functions are included by default only in PHP versions equal and greater than 5.2.
In PHP 5.1.2 this functionality is marked to be experimental and has to be enabled at compile time.
Return to ArmorySync - Depreciated
Users browsing this forum: No registered users and 0 guests