I got it, now i have another problem:*:
When i tried to acess a rank i got this error:
Code:
[B]Warning: Invalid argument supplied for foreach() in[B]/home/projectg/public_html/modules/rankings/level.php on line [B]31[/B][/B][/B]
What should i do?
PHP:
level.php
<?php/** * WebEngine * http://muengine.net/ * * [USER=316612]Version[/USER] 1.0.8 * @author Lautaro Angelico <contact@lautaroangelico.com> * [USER=822345]Copyright[/USER] (c) 2015, Lautaro Angelico * [USER=585868]Lice[/USER]nse [url=http://muengine.net/license.html]WebEngine License Agreement[/url] * [USER=2000103372]Build[/USER] 170954 */
$Rankings = new Rankings();$Rankings->rankingsMenu();$Character = new Character();loadModuleConfigs('rankings');
// Level Rankings if(mconfig('active') && mconfig('rankings_enable_level')) { $ranking_data = LoadCacheData('rankings_level.cache'); echo '<table class="rankings-table">'; echo '<tr>'; if(mconfig('rankings_show_place_number')) { echo '<td style="font-weight:bold;"></td>'; } echo '<td style="font-weight:bold;">'.lang('rankings_txt_11',true).'</td>'; echo '<td style="font-weight:bold;">'.lang('rankings_txt_10',true).'</td>'; echo '<td style="font-weight:bold;">'.lang('rankings_txt_12',true).'</td>'; echo '</tr>'; $i = 0; foreach($ranking_data as $rdata) { $characterIMG = $Character->GenerateCharacterClassAvatar($rdata[1]); if($i>=1) { echo '<tr>'; if(mconfig('rankings_show_place_number')) { echo '<td class="rankings-table-place">'.$i.'</td>'; } echo '<td>'.$characterIMG.'</td>'; echo '<td>'.$rdata[0].'</td>'; echo '<td>'.$rdata[2].'</td>'; echo '</tr>'; } $i++; } echo '</table>'; if(mconfig('rankings_show_date')) { echo '<div class="rankings-update-time">'; echo ''.lang('rankings_txt_20',true).' ' . date("m/d/Y - h:i A",$ranking_data[0][0]); echo '</div>'; } } else { message('error', lang('error_44',true)); }?>
I think that its this line:
Code:
foreach($ranking_data as $rdata) {
Last updade status are bugged too, maye its it:
Code:
Last Updated @ 01/01/1970 - 12:00 AM
My crons never run, maybe is it
Pic:
You must be registered to see links