Inder
Geowizard
Meine beiden Teamstatistiken unterschlagen einen Cache.
Sie gehen von 548 gefundenen aus, obwohl es 549 sind (wie die allgemeine Statistik richtig erkennt).
Zu erkennen: in der Teamstatistik habe ich nur 99,8%, obwohl ich immer dabei war.
Die Summe aller Caches bei "Wer war dabei?" ist 548.
Ich komme nicht darauf, wo der Hund begraben liegt. Vielleicht hat jemand eine Idee?
teamstat1.incl:
<div ##caption-style##>Wer war dabei?</div>
<table ##table-style##>
##eval(
sub StatTeam {
my(%team);
my($title);
foreach (keys(%found)) {
$title = "";
$title = $1 if ($found{$_}->{'Optional1'} =~ /^(.*?)\.(gif|jpg|jpeg|png|tiff)$/i);
$team{'<img src="pics/' . $found{$_}->{'Optional1'} . '" height="20px" title="' .
$title . '" alt="' . $title . '">'}++
if ($found{$_}->{'Optional1'} ne "");
}
return(maketds(1,4,13,5,7,scalar(keys(%found)),pairsort(1,0,%team)));
}
StatTeam();
)##
</table>
teamstat2.incl:
<div ##caption-style##>Teamstatistik</div>
<table ##table-style##>
##eval(
sub StatTeam {
my(%team,$cache,$mem);
my(%members) = (V => '<img src="pics/V.gif">', M => '<img src="pics/M.gif">',
K => '<img src="pics/K.gif">', B => '<img src="pics/B.gif">');
foreach $cache (keys(%found)) {
foreach $mem (("V", "M", "K", "B")) {
$team{$members{$mem}}++
if ($found{$cache}->{'Optional1'} =~ /$mem/);
}
}
return(maketds(1,4,13,5,7,scalar(keys(%found)),pairsort(1,0,%team)));
}
StatTeam();
)##
</table>
Sie gehen von 548 gefundenen aus, obwohl es 549 sind (wie die allgemeine Statistik richtig erkennt).
Zu erkennen: in der Teamstatistik habe ich nur 99,8%, obwohl ich immer dabei war.
Die Summe aller Caches bei "Wer war dabei?" ist 548.
Ich komme nicht darauf, wo der Hund begraben liegt. Vielleicht hat jemand eine Idee?
teamstat1.incl:
<div ##caption-style##>Wer war dabei?</div>
<table ##table-style##>
##eval(
sub StatTeam {
my(%team);
my($title);
foreach (keys(%found)) {
$title = "";
$title = $1 if ($found{$_}->{'Optional1'} =~ /^(.*?)\.(gif|jpg|jpeg|png|tiff)$/i);
$team{'<img src="pics/' . $found{$_}->{'Optional1'} . '" height="20px" title="' .
$title . '" alt="' . $title . '">'}++
if ($found{$_}->{'Optional1'} ne "");
}
return(maketds(1,4,13,5,7,scalar(keys(%found)),pairsort(1,0,%team)));
}
StatTeam();
)##
</table>
teamstat2.incl:
<div ##caption-style##>Teamstatistik</div>
<table ##table-style##>
##eval(
sub StatTeam {
my(%team,$cache,$mem);
my(%members) = (V => '<img src="pics/V.gif">', M => '<img src="pics/M.gif">',
K => '<img src="pics/K.gif">', B => '<img src="pics/B.gif">');
foreach $cache (keys(%found)) {
foreach $mem (("V", "M", "K", "B")) {
$team{$members{$mem}}++
if ($found{$cache}->{'Optional1'} =~ /$mem/);
}
}
return(maketds(1,4,13,5,7,scalar(keys(%found)),pairsort(1,0,%team)));
}
StatTeam();
)##
</table>