-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future problem with the function pretty_number(). #219
Comments
I guess the number you are summoning is 2 scales higher than "N" unit tag, for this reason, it throws that error because the key 12 on array is not defined ("N" ends as key 10, or "$unit[10]") Untested, just theorizing. |
sip, realmente eso lo force a que diera ese error, y da cuando tus puntos totales sobrepasa ese valor N, en este caso 12, Solamente basta con poner tu nivel de la tecnología de expedición al 255, y ya nada mas que actualicen los puntos, da este error. |
@yamilrh because this is a milestone quite impossible to achieve (under normal conditions in a normal server. And truth be told, barely any player know what "N" means on these conditions. A proposal could be, when number starts to be unreadable, have something like |
Si pero el caso, es que nada mas lo hice con esa tecnología o sea que a lo mejor es mas probable de que se muera antes, sin necesidad de llegar a N, ya que estructuras, flotas, defensas, y tecnologías suman . Graciaspuntos |
Message: Undefined offset: 12
File: /includes/GeneralFunctions.php
Line: 423
URL: https://localhost/htdocs/game.php
PHP-Version: 7.3.6
PHP-API: apache2handler
2Moons Version: 2.4.git
Debug Backtrace:
#0 /includes/GeneralFunctions.php(423): errorHandler(8, 'Undefined offse...', 'C://xampp//htdocs...', 423, Array)
#1 /includes/pages/game/AbstractGamePage.class.php(278): shortly_number(5.2831195950595)
#2 /includes/pages/game/AbstractGamePage.class.php(301): AbstractGamePage->getNavigationData()
#3 /includes/pages/game/AbstractGamePage.class.php(407): AbstractGamePage->getPageData()
#4 /includes/pages/game/ShowOverviewPage.class.php(374): AbstractGamePage->display('page.overview.d...')
#5 /game.php(57): ShowOverviewPage->show()
#6 {main}
GeneralFunctions.php
Line 403-424
function shortly_number($number, $decial = NULL)
{
$negate = $number < 0 ? -1 : 1;
$number = abs($number);
$unit = array("", "K", "M", "B", "T", "Q", "Q+", "S", "S+", "O", "N");
$key = 0;
}
The text was updated successfully, but these errors were encountered: