Jump to content

Txmmy83

Members
  • Posts

    493
  • Joined

  • Last visited

Posts posted by Txmmy83

  1. pireps are only counted on a 3 month average, so if the number of pireps have dropped off, then that would explain it

    that could be the case since I have made a complete restart an re-organisation of my VA B)

    thats what it shows

    0 Pilots.

    518 PIREPs.

    0 hours.

    maybe I should delete the VA from Vacentral and re-register it since I also not shown correctly on the map?

  2. Hy Txmmy83

    I think that was the problem,after set a hub the pilot was shown lol

    Can I change the financial,i mean at the beginning the financial is 0,but to buy planes etc...

    at the moment theres no possibility to set finance! or at least no one find yet.

  3. for all that are new with phpVMS

    1) Install phpVMS

    2) after install setup 1 or more hubs via admin panel (Airport)

    3) go to pilot edit and set pilot number one to your hub defined in step 2

    4) Pilot will then show up in pilotlist :)

    best regards

    Thomas

  4. I forget who created this mod, [don't feel like searching] "detailed Fleet info" but, it displays aircraft that are retired, would anyone mind post code to have this mod not show retired aircraft?

    did you mean that mod?

    http://forum.phpvms.net/topic/1522-fleet-table/

    if it is that mod look at the "Where enabled = 1"

    $sql = 'SELECT a.*, a.name AS aircraft,
    
         COUNT(p.pirepid) AS routesflown,
         SUM(p.distance) AS distance,
         SEC_TO_TIME(SUM(p.flighttime*60*60)) AS totaltime,
         AVG(p.distance) AS averagedistance,
         AVG(p.flighttime) as averagetime
         FROM   '.TABLE_PREFIX.'aircraft a
         LEFT OUTER JOIN '.TABLE_PREFIX.'pireps p ON (p.aircraft = a.id)
         WHERE enabled = 1
         GROUP BY a.name';

    • Like 1
  5. I did it like this

    $totaldistance = round(SchedulesData::distanceBetweenPoints($flight->deplat, $flight->deplng, $flight->arrlat, $flight->arrlng));
    $percomplete = ABS(number_format(((($totaldistance - $flight->distremain) / $totaldistance) * 100), 2));
    $c['percomplete'] = $percomplete;
    

    This will give you a nice number to work with.

    where did place that?

  6. first why is the empty weight 0?

    I think thats not a good idea since the system needs the last three values (range, empty weight, speed) for its price calculations

    @Michael I have tried the values from sreenshot 3 same result as you get!

    set empty weight to an realistic value best lookup in an aircraft database or wikipedia and you will see it will calculate the price B)

    best regards

    Thomas

×
×
  • Create New...