2moons

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

  • error de transportación de recurso
    Message: Undefined index: total_points
    File: /includes/GeneralFunctions.php
    Line: 475
    URL: xnova.nat.cu/game.php?page=fleetStep3
    PHP-Version: 7.3.33-10+ubuntu20.04.1+deb.sury.org+1
    PHP-API: fpm-fcgi
    2Moons Version: 2.3.git
    Debug Backtrace:
    #0 /includes/GeneralFunctions.php(475): errorHandler(8, 'Undefined index...', 'FILEPATH ...', 475, Array)
    #1 /includes/pages/game/ShowFleetStep3Page.class.php(457): CheckNoobProtec(Array, Array, Array)
    #2 /game.php(40): ShowFleetStep3Page->show()
    #3 {main}
  • File: /includes/GeneralFunctions.php Line: 475

    Line: 475


    if(($TargetPlayer['total_points'] <= $config->noobprotectiontime) || ( $OwnerPlayer['total_points'] < $config->noobprotectiontime) ){

    return array(

    'NoobPlayer' => (($TargetPlayer['total_points'] <= $config->noobprotectiontime) && ($OwnerPlayer['total_points'] > $TargetPlayer['total_points'] * $config->noobprotectionmulti)),

    'StrongPlayer' => (($OwnerPlayer['total_points'] < $config->noobprotectiontime) && ($OwnerPlayer['total_points'] * $config->noobprotectionmulti < $TargetPlayer['total_points'])),
    );

    } else {

    return array(

    'NoobPlayer' => (($OwnerPlayer['total_points'] > $TargetPlayer['total_points'] * $config->noobprotectionmulti)),

    'StrongPlayer' => ($OwnerPlayer['total_points'] * $config->noobprotectionmulti < $TargetPlayer['total_points']),
    );
    }
    }

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

  • /includes/pages/game/ShowFleetStep3Page.class.php(457)

    (457) $IsNoobProtec = CheckNoobProtec($USER, $targetPlayerData, $targetPlayerData);

    if ($targetMission == 3)
    {
    $sql = 'SELECT total_points
    FROM %%STATPOINTS%%
    WHERE id_owner = :userId AND stat_type = :statType';
    $USER += Database::get()->selectSingle($sql, array(
    ':userId' => $USER['id'],
    ':statType' => 1
    ));
    $IsNoobProtec = CheckNoobProtec($USER, $targetPlayerData, $targetPlayerData);
    if ($IsNoobProtec['NoobPlayer'])
    {
    $this->printMessage($LNG['fl_player_is_noob_transp'], array(array(
    'label' => $LNG['sys_back'],
    'url' => 'game.php?page=fleetTable'
    )));
    }
    if ($IsNoobProtec['StrongPlayer']) {
    $this->printMessage($LNG['fl_player_is_strong_transp'], array(array(
    'label' => $LNG['sys_back'],
    'url' => 'game.php?page=fleetTable'
    )));
    }
    }

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

  • el codigo de generalfunction lo añadiste tu ahi? O ya estaba
    Es que no esta encontrando $TargetPlayer['total_points']

    Elimina esto
    $IsNoobProtec = CheckNoobProtec($USER, $targetPlayerData, $targetPlayerData);
    Antes del
    if ($targetMission == 3)
    En el archivo ShowFleetStep3Page.class.php
    VERY SAD :/ :/ :/ :/
  • Busca la linea 296 en ShowFleetStep3Page.class.php

    PHP Source Code: ShowFleetStep3Pgae.class.php

    1. if($targetMission == 1 || $targetMission == 2 || $targetMission == 5 || $targetMission == 6 || $targetMission == 9)


    Añade esto || $targetMission == 3
    Debería quedarte así

    PHP Source Code: ShowFleetStep3Pgae.class.php

    1. if($targetMission == 1 || $targetMission == 2 || $targetMission == 3 || $targetMission == 5 || $targetMission == 6 || $targetMission == 9)


    y entonces elimina en donde agregaste esto

    PHP Source Code: ShowFleetStep3Pgae.class.php

    1. if ($targetMission == 3)
    2. {
    3. $sql = 'SELECT total_points
    4. FROM %%STATPOINTS%%
    5. WHERE id_owner = :userId AND stat_type = :statType';
    6. $USER += Database::get()->selectSingle($sql, array(
    7. ':userId' => $USER['id'],
    8. ':statType' => 1
    9. ));
    10. $IsNoobProtec = CheckNoobProtec($USER, $targetPlayerData, $targetPlayerData);
    11. if ($IsNoobProtec['NoobPlayer'])
    12. {
    13. $this->printMessage($LNG['fl_player_is_noob_transp'], array(array(
    14. 'label' => $LNG['sys_back'],
    15. 'url' => 'game.php?page=fleetTable'
    16. )));
    17. }
    18. if ($IsNoobProtec['StrongPlayer']) {
    19. $this->printMessage($LNG['fl_player_is_strong_transp'], array(array(
    20. 'label' => $LNG['sys_back'],
    21. 'url' => 'game.php?page=fleetTable'
    22. )));
    23. }
    24. }
    Display All


    Y prueba ver si ahora no te da ningún error
    VERY SAD :/ :/ :/ :/
  • sigue el error al enviar el recurso a la luna

    Message: Undefined index: total_points
    File: /includes/GeneralFunctions.php
    Line: 475
    URL: localhost/luz-perdida/game.php?page=fleetStep3
    PHP-Version: 7.1.33
    PHP-API: apache2handler
    2Moons Version: 2.3.git
    Debug Backtrace:
    #0 /includes/GeneralFunctions.php(475): errorHandler(8, 'Undefined index...', 'C://xampp//htdocs...', 475, Array)
    #1 /includes/pages/game/ShowFleetStep3Page.class.php(310): CheckNoobProtec(Array, Array, Array)
    #2 /game.php(40): ShowFleetStep3Page->show()
    #3 {main}
  • Desconocido wrote:

    sigue el error al enviar el recurso a la luna

    Message: Undefined index: total_pointsFile: /includes/GeneralFunctions.php
    Line: 475
    URL: localhost/luz-perdida/game.php?page=fleetStep3
    PHP-Version: 7.1.33
    PHP-API: apache2handler
    2Moons Version: 2.3.git
    Debug Backtrace:
    #0 /includes/GeneralFunctions.php(475): errorHandler(8, 'Undefined index...', 'C://xampp//htdocs...', 475, Array)
    #1 /includes/pages/game/ShowFleetStep3Page.class.php(310): CheckNoobProtec(Array, Array, Array)
    #2 /game.php(40): ShowFleetStep3Page->show()
    #3 {main}

    el error solamente pasa si envias recurso a la luna?
    VERY SAD :/ :/ :/ :/
  • a ver socio que me vas a fundir, directamente te devuelve este error cuando tu vas envías recurso a la luna o viceversa

    Source Code

    1. Message: Undefined index: total_points
    2. File: /includes/GeneralFunctions.php
    3. Line: 475
    4. URL: localhost/luz-perdida/game.php?page=fleetStep3
    5. PHP-Version: 7.1.33
    6. PHP-API: apache2handler
    7. 2Moons Version: 2.3.git
    8. Debug Backtrace:
    9. #0 /includes/GeneralFunctions.php(475): errorHandler(8, 'Undefined index...', 'C://xampp//htdocs...', 475, Array)
    10. #1 /includes/pages/game/ShowFleetStep3Page.class.php(310): CheckNoobProtec(Array, Array, Array)
    11. #2 /game.php(40): ShowFleetStep3Page->show()
    12. #3 {main}
    Display All
    o simplemente se envía los recurso pero no los resta en el planeta

    PD: Tu problema esta en function CheckNoobProtec del GeneralFunctions.php
    Como desde la primera vez, todo funciona bien para mí
    VERY SAD :/ :/ :/ :/