error when they attack you

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

  • error when they attack you

    This is happening to me when someone spies on me or attacks me shows me the following error when I give a general vision and this is what is found in said line
    $EventString = sprintf($Message, $FleetContent, $this->BuildHostileFleetPlayerLink($fleetRow), $StartType, $fleetRow['own_planetname'], GetStartAddressLink($fleetRow, $FleetType), $TargetType, $fleetRow['target_planetname'], GetTargetAddressLink($fleetRow, $FleetType), $FleetCapacity);

    Message: sprintf(): Too few arguments
    File: /includes/classes/class.FlyingFleetsTable.php
    Line: 220
    URL: localhost/2Moons/game.php?page=overview
    PHP-Version: 5.5.12
    PHP-API: apache2handler
    2Moons Version: 1.8.git
    Debug Backtrace:
    #0 [internal function]: errorHandler(2, 'sprintf(): Too ...', 'C://wamp//www//2Mo...', 220, Array)
    #1 /includes/classes/class.FlyingFleetsTable.php(220): sprintf('Una %s hostil d...', '<a href="#" dat...', 'yamil <a href="...', 'Planeta', 'Principal', '<a href="game.p...', 'Planeta', 'Principal', '<a href="game.p...', 'Atacar')
    #2 /includes/classes/class.FlyingFleetsTable.php(141): FlyingFleetsTable->getEventData(Array, 0)
    #3 /includes/classes/class.FlyingFleetsTable.php(94): FlyingFleetsTable->BuildFleetEventTable(Array, 0)
    #4 /includes/pages/game/ShowOverviewPage.class.php(74): FlyingFleetsTable->renderTable()
    #5 /includes/pages/game/ShowOverviewPage.class.php(280): ShowOverviewPage->GetFleets()
    #6 /game.php(57): ShowOverviewPage->show()
    #7 {main}
    VERY SAD :/ :/ :/ :/
  • look in your language file INGAME.php
    cff_mission_target_stay, cff_mission_target_good or cff_mission_target_bad there is missing a %s

    the %s is a placeholder

    $EventString = sprintf($Message, $FleetContent, $this->BuildHostileFleetPlayerLink($fleetRow), $StartType, $fleetRow['own_planetname'], GetStartAddressLink($fleetRow, $FleetType), $TargetType, $fleetRow['target_planetname'], GetTargetAddressLink($fleetRow, $FleetType), $FleetCapacity);

    $FleetContent is one of them and so on ........