Problem with numbers appearing distorted

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • yamilrh wrote:

      usa pretty_number
      How can I solve it?

      $this->tplObj->assign_vars(array(
      'points' => $USER['darkmatter'],
      'km_1' => pretty_number($config->bonus_1_km_cost),
      'metal_1' => pretty_number($config->bonus_1_metal),
      'cristal_1' => pretty_number($config->bonus_1_cristal),
      'deuterim_1' => pretty_number($config->bonus_1_deuterium),
      'km_2' => pretty_number($config->bonus_2_km_cost),
      'metal_2' => pretty_number($config->bonus_2_metal),
      'cristal_2' => pretty_number($config->bonus_2_cristal),
      'deuterim_2' => pretty_number($config->bonus_2_deuterium),
      'km_3' => pretty_number($config->bonus_3_km_cost),
      'metal_3' => pretty_number($config->bonus_3_metal),
      'cristal_3' => pretty_number($config->bonus_3_cristal),
      'deuterim_3' => pretty_number($config->bonus_3_deuterium),
      'km_4' => pretty_number($config->bonus_4_km_cost),
      'metal_4' => pretty_number($config->bonus_4_metal),
      'cristal_4' => pretty_number($config->bonus_4_cristal),
      'deuterim_4' => pretty_number($config->bonus_4_deuterium),
      'km_5' => pretty_number($config->bonus_5_km_cost),
      'bonus_5_fleet' => pretty_number($config->bonus_5_fleet),
      'km_6' => pretty_number($config->bonus_6_km_cost),
      'bonus_6_fleet' => pretty_number($config->bonus_6_fleet),
      'km_7' => pretty_number($config->bonus_7_km_cost),
      'bonus_7_fleet' => pretty_number($config->bonus_7_fleet),
      'km_8' => pretty_number($config->bonus_8_km_cost),
      'bonus_8_fleet' => pretty_number($config->bonus_8_fleet),

      The post was edited 1 time, last by Abyss ().

    • yamilrh wrote:

      Si, también puedes usarlo en el tpl

      Source Code

      1. {pretty_number($variable}
      No matter what I do it doesn't work, how can I add it to this code?

      <b><font color=yellowgreen>+ {$metal_4}</font><font color=yellow> {$LNG.tech.{901}}</b></font><br>