level; ?>
nom; ?>
Att : attack+$entry->level); ?>
Def : defense+$entry->level); ?>
level)
{
case 0:
$hp_max+=0;
break;
case 1:
$hp_max+=2;
break;
case 2:
$hp_max+=5;
break;
case 3:
$hp_max+=10;
break;
default:
echo "?";
}
?>
hp; ?>/
money; ?>
xp; ?>
gift; ?>
Joueurs :
entry as $entry)
{
$hp_max="10";
switch ($entry->level)
{
case 0:
$hp_max+=0;
break;
case 1:
$hp_max+=2;
break;
case 2:
$hp_max+=5;
break;
case 3:
$hp_max+=10;
break;
default:
echo "?";
}
$somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
echo '
['.$entry->level.'] '.$entry->nom.' |
'.$entry->hp.'/'.$hp_max.' |
VOIR |
';
}
}
}
closedir($dossier);
?>