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

I'm sick of PMMP's helping community, seriously

Discussion in 'Facepalm' started by instantlyta, Jun 22, 2017.

  1. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    Please read the thread before you judge me I'm The Noob Guy who making suck plugins and judge the whole community.

    The truth is, if you are asking for the help at Plugin/Development section, and no one wants to solve your problem, your thread will be moved to the Facepalm section. But that's fine, it's description-ed. But that is not what I am concerned with.
    I have 2 threads that at the Facepalm section now, one of those are not solved for 1 week. Now one more, but i promise to lose my head if those threads will be solved the next 3 weeks.

    Just understood the things below.
     
    Last edited: Jun 22, 2017
  2. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    The two \\ besides each other have a purpose. The first \ is escaping the second \ so the second \ just stays there.
    It actually ends in the same thing.
     
  3. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    Thanks, it doesn't work, sadly.
    upload_2017-6-22_22-57-48.png
    EDIT: Open dktapps' link and add "\" may make you trust me.
     
  4. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Because you have two \ there.
    Try thinking of it like this.
    If you have that regex inside two "s, php will escape the second \ and remove the first one.
    So you actually end up with one of these \ and not two.

    Example:
    PHP:
    $text "Hello\\";
    echo 
    $text;
    Output:
    Hello\

    The issue now on your picture is, that the regex website you use doesn't do that.
     
  5. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Var dumped it in a if because you asked me to.
    PHP:
    $string "^[\t ]*\\* @priority[\t ]{1,}([a-zA-Z]{1,})";
    if(
    var_dump($string)){}
    Output:
    string(40) "^[ ]*\* @priority[ ]{1,}([a-zA-Z]{1,})"

    Notice that one \ is gone?
    Dktapps had a reason to write just one \ there.
     
  6. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    Somehow understand it. My plugin just okay again.
     
  7. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    That brings me to my fool at the beginning: The single-line PHPDoc doesn't work.
    Okay so one guy told me to make a PR to make it works but screw it, no. How about changing codestyle.
    One of my thread still have no reply since then. Tried to bump and still no.
    I can spot some of other threads too. They don't looks "stupid" and the topic owner doesn't think it is stupid either. No reply then.
     
  8. Intyre

    Intyre Administrator Staff Member PMMP Team

    Messages:
    81
    GitHub:
    Intyre
    Go and see a doctor if you feel sick!
     
  9. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    Thanks, just feel fine again. Also please solve the Facepalm problem.
     
  10. Intyre

    Intyre Administrator Staff Member PMMP Team

    Messages:
    81
    GitHub:
    Intyre
  11. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    You are just like everyone else who deserves to be moved to facepalm! You didn't even research your issue before posting! regex isn't even a PMMP API problem! It's a generic coding issue which, again, you did not research before posting issues on.
    As to your second issue, you didn't research that either! https://forums.pmmp.io/threads/lack-of-help-in-simple-requests.2604/
    Be smart so you don't lower everyone else's IQ. Do some research.
     
  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.