if(!$xml){
$this->Aseco->console_text("{JB RASP}Style for Track list wasn't found. Track list won't exist");
}else{
$xml=simplexml_load_string($xml);
if(!$xml){
$this->Aseco->console_text("{JB RASP}Style for Track list isn't valid plz check");
}else{
if(!isset($xml->TrackList)) $this->Aseco->console_text("{JB RASP}No Style in Style file plz add a style");
foreach($xml->TrackList->Style as $style){
$styleName=$style["Name"];
//DEBUG
if($this->DEBUG["LoadStyles"]>0)$this->Aseco->console_text("{RASP JB DEBUG}Style Name : $styleName");
//Parts that must e calvulated
$temp=$style->Calculate->Player_Rank_Rec[0];
echo"###################################################################";
print_r($temp);
$temp=strval($temp);
$this->Style[$styleName]["Calculate"]["Player_Rank_Rec"]=$this->stringToBool($temp);
//MANİALİNK STYLE pOSİTİON
$this->Style[$styleName]["Frame_pos"]=$style->frame_position->X.' '.$style->frame_position->Y.' '.$style->frame_position->Z;
//Getting Manialinks
$this->Style[$styleName]["Header"]=$style->Header->asXML();
$this->Style[$styleName]["Header"]=str_replace(array('<Header>', '</Header>'), '', $this->Style[$styleName]["Header"]);
$this->Style[$styleName]["Contenent"]=$style->Contenent->asXML();
$this->Style[$styleName]["Contenent"]=str_replace(array('<Contenent>', '</Contenent>'), '', $this->Style[$styleName]["Contenent"]);
$this->Style[$styleName]["Footer"]=$style->Footer->asXML();
$this->Style[$styleName]["Footer"]=str_replace(array('<Footer>', '</Footer>'), '', $this->Style[$styleName]["Footer"]);
//Getting more
$this->Style[$styleName]["Y_positions"]["Y_COORD_LABEL"]=floatval($style->Y_positions->Y_COORD_LABEL);
$this->Style[$styleName]["Y_positions"]["Y_COORD_QUAD"]=floatval($style->Y_positions->Y_COORD_QUAD);
$this->Style[$styleName]["Y_positions"]["Y_COORD_IMG"]=floatval($style->Y_positions->Y_COORD_IMG);
$this->Style[$styleName]["Y_positions"]["Move_Each_line"]["Y_COORD_LABEL"]=floatval($style->Y_positions->Move_Each_line->Y_COORD_LABEL);
$this->Style[$styleName]["Y_positions"]["Move_Each_line"]["Y_COORD_QUAD"]=floatval($style->Y_positions->Move_Each_line->Y_COORD_QUAD);
$this->Style[$styleName]["Y_positions"]["Move_Each_line"]["Y_COORD_IMG"]=floatval($style->Y_positions->Move_Each_line->Y_COORD_IMG);
$this->Style[$styleName]["Window"]["PosX"]=floatval($style->Window->posX);
$this->Style[$styleName]["Window"]["PosY"]=floatval($style->Window->posY);
}
}
}
j'ai pas reussi a resoudre le probleme Code : Tout sélectionner
[PHP Warning] Illegal offset type on line 202 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 205 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 207 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 208 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 208 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 210 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 211 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 211 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 213 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 214 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 214 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 217 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 218 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 219 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 221 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 222 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 223 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 225 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.php
[PHP Warning] Illegal offset type on line 226 in file C:\Documents and Settings\Oliver De Cramer\Desktop\oyun\TM\Server\
TMF\oliver\plugins\rasp\plugin.rasp_jukebox.phpLe XML que j'esseye a avoir est
Code : Tout sélectionner
<Manialinks>
<TrackList>
<Style Name="Default">
<!--If Rank, Personal Rec.... isn't shown why to calculate it and lose time
No need to wory about non personal informations,
They are taken from the DB while track list is being created and won't depend to the Style used-->
<Calculate>
<Player_Rank_Rec>true</Player_Rank_Rec>
</Calculate>
<Window>
<posX>1.47</posX>
<posY>1.02</posY>
</Window>
<frame_position>
<X>0</X>
<Y>0</Y>
<Z>0.5</Z>
</frame_position>
<Y_positions>
<Y_COORD_LABEL>-0.136</Y_COORD_LABEL>
<Y_COORD_QUAD>-0.131</Y_COORD_QUAD>
<Y_COORD_IMG>-0.131</Y_COORD_IMG>
<Move_Each_line>
<Y_COORD_LABEL>-0.040</Y_COORD_LABEL>
<Y_COORD_QUAD>-0.040</Y_COORD_QUAD>
<Y_COORD_IMG>-0.040</Y_COORD_IMG>
</Move_Each_line>
</Y_positions>
<Header>
<quad pos="0 0 -0.5" size="1.47 0.09" halign="left" style="BgsPlayerCard" substyle="BgPlayerName"/>
<label pos="-.5 -0.05 -0.75 -.8" size="1.26 0.07" halign="center" style="TextTitle3" text="{TEXT_COLOR}Tracks On This Server - $i$090(Number of TOP1 : {NBTOP})"/>
<format style="TextTitle3"/><label pos="-0.03 -0.102 -.8" size="0.07 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}Id" />
<label pos="-0.08 -0.102 -.8" size="0.44 0.06" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Name + Karma" />
<label pos="-0.68 -0.102 -.8" size="0.20 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}Author" />
<label pos="-0.9 -0.102 -.8" size="0.06 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}Rank " />
<label pos="-0.98 -0.102 -.8" size="0.08 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}Score" />
<label pos="-1.08 -0.102 -.8" size="0.08 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}Record" />
<label pos="-1.18 -0.102 -.8" size="0.24 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}Record by" />
</Header>
<Contenent>
<label pos="-0.025 {Y_COORD_LABEL} -.8" size="0.05 0.06" halign="left" style="TextTitle3" text="{TEXT_COLOR}{TRACKID}" />
<quad pos="-0.082 {Y_COORD_IMG} -.6" sizen="2.80 2.352 .52" image="http://niarfman.free.fr/tmnF/env/{TRACKENV}.png" />
<quad pos="-0.07 {Y_COORD_QUAD} -.8" size="0.60 0.045" halign="left" style="Bgs1InRace" substyle="{QUAD_SUBSTYLE}" action="{name:jbtrack,param:{TRACKNUM}}" />
<label pos="-0.135 {Y_COORD_LABEL} -.8" size="0.44 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}{TRACKNAME}" />
<label pos="-0.615 {Y_COORD_LABEL} -.8" size="0.04 0.05" halign="left" style="{STYLE_TEXT}" text="$888{KARMA}" />
<quad pos="-0.67 {Y_COORD_QUAD} -.8" size="0.22 0.045" halign="left" style="Bgs1InRace" substyle="NavButton" />
<label pos="-0.68 {Y_COORD_LABEL} -.8" size="0.20 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}{TRACKAUTHOR}" />
<quad pos="-0.89 {Y_COORD_QUAD} -.8" size="0.08 0.045" halign="left" style="Bgs1InRace" substyle="NavButton" />
<label pos="-0.9 {Y_COORD_LABEL} -.8" size="0.06 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}{RANK}" />
<quad pos="-0.97 {Y_COORD_QUAD} -.8" size="0.1 0.045" halign="left" style="Bgs1InRace" substyle="NavButton" />
<label pos="-0.98 {Y_COORD_LABEL} -.8" size="0.08 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}{SCORE}" />
<quad pos="-1.07 {Y_COORD_QUAD} -.8" size="0.1 0.045" halign="left" style="Bgs1InRace" substyle="NavButton" />
<label pos="-1.08 {Y_COORD_LABEL} -.8" size="0.08 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}{REC}" />
<quad pos="-1.17 {Y_COORD_QUAD} -.8" size="0.30 0.045" halign="left" style="Bgs1InRace" substyle="NavButton" />
<label pos="-1.18 {Y_COORD_LABEL} -.8" size="0.28 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}{REC_NICKNAME}" />
</Contenent>
<Footer>
<quad pos="-0.08 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Stadium.png" />
<label pos="-0.125 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Stadium" />
<quad pos="-0.27 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Snow.png" />
<label pos="-0.31 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Alpine/Snow" />
<quad pos="-0.52 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Desert.png" />
<label pos="-0.56 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Desert/Speed" />
<quad pos="-0.80 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Coast.png" />
<label pos="-0.83 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Coast" />
<quad pos="-0.97 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Rally.png" />
<label pos="-1.005 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Rally" />
<quad pos="-1.125 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Island.png" />
<label pos="-1.17 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Island" />
<quad pos="-1.30 -.96 -.6" sizen="2.80 2.35 .52" image="http://niarfman.free.fr/tmnF/env/Bay.png" />
<label pos="-1.34 -.961 -.8" size="0.30 0.05" halign="left" style="{STYLE_TEXT}" text="{TEXT_COLOR}Bay" />
</Footer>
</Style>
</TrackList>
</Manialinks>