Data numeric value

Discussion in 'Development' started by Ayzrix, Jul 13, 2019 at 11:58 PM.

  1. Ayzrix

    Ayzrix Spider Jockey

    Messages:
    48
    GitHub:
    Ayzrix
    Can someone help me? With 1.12, it makes me a mistake and I do not know how to fix that

    Code :
    PHP:
    $this->core->pose->set($name,$this->core->pose->get($name 1));
    Error :
    Code:
    [00:55:16] [Server thread/CRITICAL]: ErrorException: "A non-numeric value encountered" (EXCEPTION)
     
  2. wolfdale

    wolfdale Zombie

    Messages:
    319
    I think you are trying to do this
    PHP:
    $this->core->pose->set($name,$this->core->pose->get($name) + 1);
    The error is saying that $name is not a number, thus you cant + 1
     
    Ayzrix likes this.
  3. Ayzrix

    Ayzrix Spider Jockey

    Messages:
    48
    GitHub:
    Ayzrix
    Thanks to you :D
    on 1.11 my code work :c
     

Share This Page

  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.