Codex

sports_bench_get_shooting_average

Gets the shooting average for a player.

Parameters

  • int $made — The number of made shots.
  • int $attempts — The number of shot attempts.

Returns

  • float|string — The shooting averate for the player.

Since: 2.0

Source

  • /includes/functions/players.php — 207