I seem to have stumbled upon a bug in the
getMatchLineUp() method. When I try to get the lineup
for Sweden's NT (3000) for match (57637893). And then
want a nice list with player id's and there
starrating. Somehow this gets messed up because there
is a substitute player and an open spot in the lineup.
So when I use this code:
$lineup = $htclient->getMatchLineup
(57637893,3000);
if (! $lineup) {
$htclient->logout();
header('Location: error.php?
code=2');
exit();
}
for ($j = 0;$j < count($lineup
['PLAYER']); $j++) {
$player = $lineup['PLAYER']
[$j];
echo $player['PLAYERID']." -
".$player['RATINGSTARS'];
echo '<br />';
}
I get:
2676971 - 11.5
4856198 - 11
1428881 - 10
4690505 - 12.5
3495403 - 9
2417197 - 10.5
2553911 - 10.5
2417923 - 7.5
3576656 - 10
3494924 - 11
0 - 9
1519593 -
1528151 -
2595431 -
7496700 -
3495403 -
2417923 -
2715941 -
But the 9 starrating should not be matched to id 0
(the empty spot in the lineup), but to the substituted
player (id 2715941).