1. <?php
  2. $Int2=0;
  3. while($Int2<3)
  4. {
  5. $Int=0;
  6. while($Int<3)
  7. {
  8. $I=($Int2*3)+$Int;
  9. $MapCoord[$I]['X']=$Coord[0]-1+$Int;
  10. $MapCoord[$I]['Y']=$Coord[1]-1+$Int2;
  11. $Int++;
  12. }
  13. $Int2++;
  14. }
  15.  
  16. $Query=mysql_query("Select * from Zones") or die("Could not select zones");
  17. $Zone=null;
  18. while($Zone=mysql_fetch_array($Query))
  19. {
  20. $Int=0;
  21. while($Int<9)
  22. {
  23. if($MapCoord[$Int]['X']>=$Zone['StartX']&&$MapCoord[$Int]['X']<=$Zone['EndX']&&$MapCoord[$Int]['Y']>=$Zone['StartY']&&$MapCoord[$Int]['Y']<=$Zone['EndY'])
  24. {
  25. $MapCoord[$Int]['Texture']=$Zone['Texture'];
  26. $MapCoord[$Int]['Name']=$Zone['Name'];
  27. }
  28. $Int++;
  29. }
  30. }
  31.  
  32. /*
  33. $Int=0;
  34. while($Int<9){
  35. print $MapCoord[$Int][X];
  36. print ",";
  37. print $MapCoord[$Int][Y];
  38. print " -- ";
  39. print $MapCoord[$Int][Texture];
  40. print "<br>r\n";
  41. $Int++;
  42. }*/
  43.  
  44.  
  45. ?><table border=0 cellspacing="0"><?php
  46.  
  47. $Int2=2;
  48. while($Int2>=0)
  49. {
  50. $Int=0;
  51. print "<tr>";
  52. while($Int<3)
  53. {
  54. $I=($Int2*3)+$Int;
  55. $ZoneTexture = $MapCoord[$I]['Texture'];
  56. $ZoneName = $MapCoord[$I]['Name'];
  57. $ZoneX  = $MapCoord[$I]['X'];
  58. $ZoneY  = $MapCoord[$I]['Y'];
  59. print "<td background=\"map/$ZoneTexture\" width=50 height=50><div title=\"Twoje polozenie : $ZoneName - X: $ZoneX, Y: $ZoneY \">";
  60. print "<img src='map/forest.jpg' border='0' width=50 height=50 /></div></td>";
  61. //print "<td width=50 height=50><img src=\"map/$Texture\" border='0' width=50 height=50 /></td>r\n";
  62. $Int++;
  63. }
  64. print "</tr>";
  65. $Int2--;
  66. }
  67. ?>
  68. </table>


W 59.60 linijce mam taki mały problem wszystko działa w skrypcie jest all ok
Ale nie umiem po usunąć kawałków tekstu
Jak chcem żeby nie było tak że ,,Twoje polozenie : zmienne
nie pokazywało się w dymku w obrazku tylko żeby sam text został w tym miejscu i innych obrazków nie było.

Mam nadzieje że mi ktos pomoze.
jeszcze chodzi o to żeby ten text pokazywał się tylko raz i tylko te położenie zoneX i zoneY żadnych innych tylko te główne srodkowe.