ducktape Posted August 12, 2007 Posted August 12, 2007 does any1 know how to fix index.php every1's stat is stuck at rank 1 but in hof the stats are right :( <?php $housequery=1; include "globals.php"; print "General Info:"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); print "</pre> <table>[b]Name:[/b] {$ir['username']}[b]Crystals:[/b] {$cm}[b]Level:[/b] {$ir['level']}[b]Exp:[/b] {$exp}%[b]Money:[/b] $fm[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}[b]Property:[/b] {$ir['hNAME']}</table>";<br>print "<hr> <h3>Stats Info:</h3>";<br>$ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ'];<br>$ir['strank']=get_rank($ir['strength'],'strength');<br>$ir['agirank']=get_rank($ir['agility'],'agility');<br>$ir['guarank']=get_rank($ir['guard'],'guard');<br>$ir['labrank']=get_rank($ir['labour'],'labour');<br>$ir['IQrank']=get_rank($ir['IQ'],'IQ');<br>$tsrank=get_rank($ts,'strength+agility+guard+labour+IQ');<br>$ir['strength']=number_format($ir['strength']);<br>$ir['agility']=number_format($ir['agility']);<br>$ir['guard']=number_format($ir['guard']);<br>$ir['labour']=number_format($ir['labour']);<br>$ir['IQ']=number_format($ir['IQ']);<br>$ts=number_format($ts);<br><br>print "<table>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}][b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}][b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}][b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}][b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}][b]Total stats:[/b] {$ts} [Ranked: $tsrank]</table>";<br>if(isset($_POST['pn_update']))<br>{<br>$db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid");<br>$ir['user_notepad']=stripslashes($_POST['pn_update']);<br>print "<hr>[b]Personal Notepad Updated![/b]";<br>}<br>print "<hr>Your Personal Notepad:<br>".htmlspecialchars($ir['user_notepad'])."<br><br>";<br>$h->endpage();<br thats my index.php i have tryed others index.php that they sent me they looked at mine they see notthing wrong plz help thanks Quote
UCC Posted August 12, 2007 Posted August 12, 2007 Re: stats stuck at 1 Well start with this.... The code you posted is absolutely fine. I loaded it onto my game and it worked perfect. So if you are not getting correct info, the problem lies elsewhere Quote
Guest Anonymous Posted August 12, 2007 Posted August 12, 2007 Re: stats stuck at 1 Shoure it don,t have any think to do with the day cron Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.