Azərbaycan dili Bahasa Indonesia Bosanski Català Čeština Dansk Deutsch Eesti English Español Français Galego Hrvatski Italiano Latviešu Lietuvių Magyar Malti Mакедонски Nederlands Norsk Polski Português Português BR Românã Slovenčina Srpski Suomi Svenska Tiếng Việt Türkçe Ελληνικά Български Русский Українська Հայերեն ქართული ენა 中文
Subpage under development, new version coming soon!

Subject: Decode timePlayed from xml

  • 1
  • 2
2022-08-15 22:25:50
<timePlaying>2435</timePlaying>
<timeDefending>632</timeDefending>
2022-08-15 22:27:26
Yeah, it's a bit tricky because you need to know the shirt number to be sure whether the player played or not

Does it work in the case where you leave one empty spot in the main 11 and at the same time put someone on bench? In this case that player from bench will play from the start, but I'm not sure if he will get shirt number from his bench position or from that empty spot?

Personally I check if any of these are greater than 0: rating, timePlaying or timeDefending, but I guess it could theoretically fail with some 0 rating player put into the corner :P
2022-08-15 22:44:18
everyone that gets in, in theory, gets the shirt number of the slot is out so i guess it should work
2022-08-16 00:32:07
Thanks, now it makes sense. It didn't cross my mind that there can be multiple players from with the same "number" assigned. I thought subs stay with their number from bench, now I see they "inherit" it from changed player.
  • 1
  • 2