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

Solved Stupid error

Discussion in 'Development' started by armagadon159753, Oct 18, 2017.

Thread Status:
Not open for further replies.
  1. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    textformat not be reset:
    " <<"
    "/"

    PHP:
    $button = new Button(TextFormat::RESET ">> " TextFormat::GREEN "Lobby" TextFormat::RESET " <<" "\n" TextFormat::BLACK "[" TextFormat::GOLD $playersOnline TextFormat::RESET "/" TextFormat::GOLD $maxOnline TextFormat::BLACK "]");
     

    Attached Files:

    Last edited: Oct 18, 2017
  2. R4EVAELRM

    R4EVAELRM Witch

    Messages:
    73
    read your code. TextFomat when it should be TextFormat :D
     
    Levi and armagadon159753 like this.
  3. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    It's TextFormat, not TextFomat. :facepalm:
     
    OnTheVerge and Levi like this.
  4. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    textformat not be reset:
    " <<"
    "/"

    PHP:
    $button = new Button(TextFormat::RESET ">> " TextFormat::GREEN "Lobby" TextFormat::RESET " <<" "\n" TextFormat::BLACK "[" TextFormat::GOLD $playersOnline TextFormat::RESET "/" TextFormat::GOLD $maxOnline TextFormat::BLACK "]");
     
  5. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    TextFormat::RESET resets the format of the text, not the color... Is that what you're confused about?
     
    Levi likes this.
  6. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    then why is the color returned to default by default at the first line ?
    PHP:
    --= TextFomat::Green Server Liste TextFormat::RESET =--
     
  7. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    I'd say take the L if you could SPELL it.
     
  8. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    behavior we as civilized people
     
Thread Status:
Not open for further replies.
  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.