where is my mistake!!!

Discussion in 'Development' started by 7awariGamer, Jun 9, 2019.

  1. 7awariGamer

    7awariGamer Baby Zombie

    Messages:
    108
    GitHub:
    7awariGamer
    [22:11:23] [Server thread/CRITICAL]: TypeError: "strpos() expects parameter 1 to be string, array given" (EXCEPTION) in "plugins/StockPE_vanilla/src/StockPE/MCBE/Vanilla" at line 74

    PHP:
    if(strpos($selectorStr" ") !== -1$selectorStr explode(" "$selectorStr)[count(explode(" "$selectorStr)) - 1];
     
  2. Destroyer57

    Destroyer57 Zombie

    Messages:
    221
    $selectorStr is array you must make it a string
     
  3. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    654
    $selectorStr = implode (" ", $selectorStr);
     

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.