The problem is in the changes you have done :)
Asking questions is a skill[
^]
Do you understand that it impossible to answer your question ?
You explain that you have done changes in a code you found on internet and that your changes don't work.
You don't show your changes.
Keep in mind we don't see your screen, don't have access to your computer (at least for most of us :) ), don't know what is in your head.