1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Help plis

Discussion in 'Help' started by Mochi, Apr 5, 2019.

  1. Mochi

    Mochi Baby Zombie

    Messages:
    113
    Error: Declaration of Pets\Pets::move(Pets\integer $dx, Pets\integer $dy, Pets\integer $dz) must be compatible with pocketmine\entity\Entity::move(float $dx, float $dy, float $dz): void
    File: plugins/Pet/src/Pets/Pets
    Line: 268
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: Pets v2.0.0

    Code:
    [259] * Get teh time interval
    [260] *
    [261] * @param string $started The started time
    [262] * @return integer The time value
    [263] */
    [264] public static function getTimeInterval(string $started): integer {
    [265] return round((strtotime(date('Y-m-d H:i:s')) - strtotime($started)) /60);
    [266] }
    [267]
    [268] }
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    perhaps you meant int and not integer
     
    Diduhless likes this.
  3. Mochi

    Mochi Baby Zombie

    Messages:
    113
  4. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    I suggest you read php basics https://www.php.net/manual/en/language.types.integer.php
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.