Problema clasament GameMaster

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Închis
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Salut J4M am facut acum cv timp un topic in care am intrebat cum scot staff-ul din clasament mi sa dat urmatoarele chesti sa le pun in inc/jucatori.php dar nu merge !!!
include ("config.php");

"SELECT * FROM player WHERE name NOT LIKE '[OwM]%' AND name NOT LIKE '[GA]%' ORDER BY level DESC";
$sql = "SELECT
*
FROM
player
WHERE name NOT LIKE '[CoMa]%' AND name NOT LIKE '[GA%]' AND name NOT LIKE '[GM%]' AND name NOT LIKE '[BA%]' AND name NOT LIKE '[SGM%]' ORDER BY level DESC";
$i = "0" ;
$ergebnis = mysql_query($sql);
$ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
{
$i = $i + 1 ;
echo "
<center><table border=0>
<tr>
<th width="80"><font color=orangered>$i</font></th>
<th width="200"><font color=snow>$row->name</font></th>
<th width="200"><font color=maroon>$row->exp</font></th>
<th width="200"><font color=orangered>$row->level</font></th>
</tr>
</table></center>";
}

echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>
</tr>
</table></center><hr>
</tbody>
</table>
</body>
</div>
</div>
</div>
</div>
<div class="clr"></div>
<div id="content_down">
<div id="content_down_left">
</div>
</div>
<div id="container2">
<div id="user_modules2">
<div id="user5">
</div>
<div id="user6">
</div>
</div>

</body>
Dar imi arata asa :
Imagine
Astept va rog frumos Multumesc !!!
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Bagă asta:

Cod: Selectaţi tot

<table border="0" align="center" cellpadding="0" cellspacing="0" width="90%" >



   <tr>



    <td colspan="3" height="5"></td>



    </tr>



  <tr class="top">



    <td>#</td>



    <td>NUME</td>



    <td align="center">LEVEL</td>



  </tr><?php 



 	$query = "SELECT * FROM player.player  WHERE name NOT LIKE '[GM]%' AND name NOT LIKE '[GA]%' AND name NOT LIKE '[%]%' AND name NOT LIKE '[SA]%'  AND name NOT LIKE '[]%'   AND name NOT LIKE '[TGM]%' AND name NOT LIKE '[SGM]%' ORDER BY level desc, exp desc, name asc limit 0,10";



      $i = "0" ;



	  



	  



 $doQuery = mysql_query($query) or die(mysql_error());



while($getPlayers = mysql_fetch_object($doQuery))



   {



   $i = $i + 1 ;



  



   $cache_content .= '



 	<tr class="top">



    <td width="23">'.$i.'</td>



    <td width="141">'.$getPlayers->name.'</td>



    <td width="53" align="center">'.$getPlayers->level.'</td>



  	</tr>



	';







}







if ( !file_exists('top/player_cache.txt'))



 {



$q1_cache = fopen('top/player_cache.txt', 'w');



fwrite($q1_cache, $cache_content);



fclose($q1_cache);



 }



 else



 {



	 if (filemtime('top/player_cache.txt') < (time() - 18000))



	 {



		unlink('top/player_cache.txt');



		$q1_cache = fopen('top/player_cache.txt', 'w');



		fwrite($q1_cache, $cache_content);



		fclose($q1_cache);



	 }



	 else



	 {



		 $q1_cache = fopen('top/player_cache.txt', 'r');



		 $cache_content = fread($q1_cache, filesize('top/player_cache.txt') + 1);



		 fclose($q1_cache);



		 echo $cache_content;



	 }



 }



	











				?>  <tr>



    <td colspan="3" height="5"></td>



    </tr></table>



	

Caută această linie:

Cod: Selectaţi tot

top/player_cache.txt
Această linie reprezintă fișierul unde se află acest text document numit player_cache.txt

Acel top fiind fișierul unde se află player_cache.txt,ei bine tu modifici acolo așa cum ai tu,adică fișierul unde ți se află acel player_cache.txt .

Succes.
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Deci pun ce mi-ai dat mai sus in jucatori.php si nu mai pun ce aveam eu ma inainte iar dupa caut linia accea si o modific cu jucatori.php ?
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Style04 scrie:Deci pun ce mi-ai dat mai sus in jucatori.php si nu mai pun ce aveam eu ma inainte iar dupa caut linia accea si o modific cu jucatori.php ?

Pui în jucatori.php .

Iar după cauți linia aceea și modific acolo locația unde se află fișierul player_cache.txt.
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Si cum gasesc player_cache.txt ? asta nu inteleg ca sa schimb in linia aceea ??
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Style04 scrie:Si cum gasesc player_cache.txt ? asta nu inteleg ca sa schimb in linia aceea ??
Caută mă omule în FTP în toate fișierele un text document numit player_cache.txt.
Ce e așa greu să cauți ceva în FTP-ul ăla.
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Rezolvat T/C
Închis

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 74 vizitatori