Mam taki plik:
<?xml version="1.0"?>
<player name="Beginner" account="1" voc="1" level="1797" access="5" banned="0">
<spawn x="127" y="160" z="7"/>
<temple x="307" y="245" z="7"/>
<skull type="0" kills="0" ticks="0" absolve="0"/>
<health now="7742" max="7742" food="1000"/>
<mana now="37938" max="38010" spent="1471680"/>
<ban banned="0" banstart="0" banend="0" comment="" reason="" action="" deleted="0" finalwarning="0" banrealtime=""/>
<skills>
<skill skillid="0" level="20" tries="513"/>
<skill skillid="1" level="15" tries="10"/>
<skill skillid="2" level="15" tries="10"/>
<skill skillid="3" level="17" tries="1850"/>
<skill skillid="4" level="15" tries="10"/>
<skill skillid="5" level="15" tries="10"/>
<skill skillid="6" level="15" tries="10"/>
</skills>
<inventory>
<slot slotid="2">
<item id="2173"/>
</slot>
<slot slotid="7">
<item id="2507"/>
</slot>
<slot slotid="8">
<item id="2643"/>
</slot>
</inventory>
</player>
Jeśli chcę sprawdzic czy wartosc 'health max' jest rowna 2000 to wpisuję:
<?php
if(isset($player-> data ->health['max']==2000)){... ?>
Co muszę wpisać by wywołać ' slot slotid="2" i w tym item id="2173" ' ?
Probowalem juz wpisac
<?php
if(isset($player-> data ->inventory->(slot
['slotid']==2)->(item
['id']==2173))){... ?>
ale to jednak nie pomogło
Proszę o pomoc, jak mam to wywołac?
Ten post edytował crea 6.06.2009, 19:10:21