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

Forms Problem

Discussion in 'Development' started by Muhammed0232, Nov 27, 2019.

  1. Muhammed0232

    Muhammed0232 Spider Jockey

    Messages:
    38
    GitHub:
    Muhammed0232
    My code dont work i use form api click buton and close ui
     

    Attached Files:

  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    What exactly happens when you click a button on the form, any errors on the console?

    In the future please don't screenshot your code, instead use the "+" button in the forum text editor and select "Code".
     
  3. Muhammed0232

    Muhammed0232 Spider Jockey

    Messages:
    38
    GitHub:
    Muhammed0232
    Dont have error the console
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Try replacing switch($data) with switch($result)
     
  5. NutXzG

    NutXzG Baby Zombie

    Messages:
    132
    GitHub:
    NutXzG
    I was fascinated by one thing
    PHP:
    public function AnaForm($player)
    $form = new SimpleForm(function (Player $s,  int $data == null)
    //but I use
    public function AnaForm(Player $s)
    $form = new SimpleForm(function (Player $sint $data == null)
    //and
    $player $s;
    don't screenshot plz
     
    RicardoMilos384 likes this.
  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.