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

Plugins

Discussion in 'Facepalm' started by Leo, Mar 6, 2017.

  1. Leo

    Leo Silverfish

    Messages:
    23
    Hello, I am new to coding but I don't know how to code plugins... By "new to coding" I mean that I know and understand the basics but I'm assuming its different for plugins... Can anyone give me a link to go to a website or post so I can check that out, or if you know how to code plugins for PE if you have any basics that I might need to know you can just comment them. Also do you guys know any 1v1 plugins other than 1vs1 ??
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    firstly, you need to learn PHP
    no exceptions you must know the basic of PHP
    secondly, you need to learn OOP for PHP
    no exceptions same as the first
    Both steps are very important and crucial so do not skip them
    thirdly, Boom you now magically know how to make pm plugin, weather from looking into the source code OR looking into other users plugins you should have absuletly no problem at all reading or understanding PM once you finished step one and two

    And the best thing is there a website for everything you need to know in order to learn PHP, it's PHP.net
    And here is a handy link http://php.net/manual/en/langref.php
    just learn every chapter/resume off from where you last left off and you should be all set

    not every thing is needed to understand PM, but it is essential to optimize PHP to it's fullest potential
     
  3. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    I never learned PHP, same as i never learned JavaScript. Well, i did learn but it was litterally trial and error and copying code. I started with ModPE because its so simple and moved to java from that.
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    but if you have learn PHP you wont be just blindly copying code, you actually KNOW what it does
    which make a difference from copying and coding
     
    Jack Noordhuis and jasonwynn10 like this.
  6. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    I know what stuff does NOW, its just in the beginning copy and pasting and editing other plugins was how i learnt.
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    By "learning" we don't mean going to a particular website or college or buying a book to learn it. As long as it is in-depth understanding, it is OK. Many people claim to have "learnt" PHP, but they don't really understand why we need to use classes at all.
    As a matter of fact, many of us here have never learnt PHP properly, but managed to create legend by pure talent.
    To be exact, "first you need to learn PHP" is the simple answer we give to people who ask the broad question "how to write plugins". All roads lead to Rome -- how would we know which method is the best for you, an individual?
     
  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.