jup, danke es funzt, sind nur noch ein paar kleinigkeiten, zum beispiel das ich jetzt auf 103.6% stehe und das ich da einen spezielrang habe wo nix dahinter steht...
therules.th.ohost.de/index.php?user-details-1
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<td class="Cmite">Erfahrung</td> <td class="Cnorm"><table border="0"><tr><td style="background-color:#0000FF" width="{ERFAHRUNG}" height="10"></td><td><td></tr></table></td> </tr><tr> <td class="Cmite">Nächster Rang</td> <td class="Cnorm"><table border="0"><tr><td style="background-color:#0000FF" width="{NEXT}" height="10"></td><td><td></tr></table></td> </tr><tr>
if($row['posts'] != 0) { $postar = array(0,1,25,50,75,150,250,500,1000,2000,5000,7000,10000); $i=0; while($postar[$i] < $row['posts']) { $next = 100/($postar[$i+1]-$postar[$i])*($row['posts']-$postar[$i]); $i++; } } else { $next = "0"; } $erfahrung = 100/200000*$row['posts'];
array(0,1,25,50,75,150,250,500,1000,2000,5000,7000,10000);
'ERFAHRUNG' => $erfahrung, 'NEXT' => $next,
if(($row['posts']+$row['cpoints']) != 0) { $postar = array(1,5,15,30,45,90,150,230,340,400,600,800,1600,2500,3800,5000,7500,10000,60000,100000,150000,200000); $i=0; while($postar[$i] < ($row['posts']+$row['cpoints'])) { $next = 100/($postar[$i+1]-$postar[$i])*(($row['posts']+$row['cpoints'])-$postar[$i]); $i++; } } else { $next = "0"; } $erfahrung = 100/200000*($row['posts']+$row['cpoints']);
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /usr/export/www/hosting/therules/include/includes/func/db/mysql.php on line 44
$eprang = ''; if ( $row['eprang']) { $eprang = str_replace("900","Command Chief Master Sergeant",$row['eprang']); $eprang = str_replace("1000","Chief Master Sergeant of the Army",$eprang); $eprang = str_replace("1100","Second Lieutenant",$eprang); $eprang = str_replace("1200","First Lieutenant",$eprang); $eprang = str_replace("1300","Captain",$eprang); $eprang = str_replace("1400","Major",$eprang); $eprang = str_replace("1500","Lieutenant Colonel",$eprang); $eprang = str_replace("1600","Colonel",$eprang); $eprang = str_replace("1700","Brigadier General",$eprang); $eprang = str_replace("1800","Major General",$eprang); $eprang = str_replace("1900","Lieutenant General",$eprang); $eprang = str_replace("2000","General",$eprang); $eprang = str_replace("2100","General of the Army ",$eprang); $eprang = str_replace("2200","Clan Captain",$eprang); $eprang = str_replace("2300","Clan Fuehrer",$eprang); $eprang = str_replace("100","Private First Class",$eprang); $eprang = str_replace("200","Corporal",$eprang); $eprang = str_replace("300","Sergeant",$eprang); $eprang = str_replace("400","Staff Sergeant",$eprang); $eprang = str_replace("500","Technical Sergeant",$eprang); $eprang = str_replace("600","Master Sergeant",$eprang); $eprang = str_replace("700","Senior Master Sergeant",$eprang); $eprang = str_replace("800","Chief Master Sergeant",$eprang); $eprang = str_replace("50","Kein Rang",$eprang); $eprangname = '<b>'.$eprang.'</b>'; $eprang = '<img src="/include/images/eprang/'.$eprang.'.png" title="Dienstgrad" border="0">'; } if(($row['eprang']) != 0) { $postar = array(50,100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200.2300); $i=0; while($postar[$i] < ($row['eprang'])) { $next = 100/($postar[$i+1]-$postar[$i])*(($row['eprang'])-$postar[$i]); $i++; } } else { $next = "0"; } $erfahrung = 100/2300*($row['eprang']); $regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist']; $regday = round($regsek / 86400); $postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) ); $xboxname = @db_result(db_query('SELECT val FROM `prefix_userfields` WHERE uid = "'.$uid.'" AND fid = 35'),0); $gamercard = '<iframe src="http://gamercard.xbox.com/'.$xboxname.'.card" scrolling="no" alt="Live Gamercard" frameBorder="0" height="140" width="204">'.$xboxname.'</iframe>'; $ar = array ( 'NAME' => $row['name'], 'JOINED' => date('d M Y',$row['regist']), 'LASTAK' => date('d M Y - H:i',$row['llogin']), 'POSTS' => $row['posts'], 'postpday' => $postpday, 'RANG' => userrang ($row['posts'],$uid), 'AVATA' => $avatar, 'GAMERCARD' => $gamercard, 'AZ' => $row['az'], 'ORDEN' => $row['orden'], 'EPRANG' => $eprang, 'ERFOLGE' => $row['erfolge'], 'EPRANGNAME' => $eprangname, , 'ERFAHRUNG'=> $erfahrung, 'NEXT'=> $next, );
Zeile 62= $next = 100/($postar[$i+1]-$postar[$i])*(($row['eprang'])-$postar[$i]);
#Erfahrung/NächsterRang if($row[\'posts\'] != 0) { $postar = array(0,50,100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2300); $i=0; while($postar[$i] < $row[\'posts\']) { $next = round (100/($postar[$i+1]-$postar[$i])*($row[\'posts\']-$postar[$i]),2); $i++; } } else { $next = \"0\"; } $erfahrung = round (100/2300*$row[\'posts\'],2);
# $next = 100/($postar[$i+1]-$postar[$i])*(($row['eprang'])-$postar[$i]);
# $next = 100/($postar[$i+1]-$postar[$i])*($row['eprang']-$postar[$i]);
Geschlossen | ||
Zurück zu Allgemein |