JoaoP:
The thing is... I deleted everythink because nothing worked. I spent 3h on the code and 1 searching for answers.
Don't delete ANYTHING. Save everything. At the worst in a while it will remind you of how much better you are than when you first wrote it. Just think how mad you'd be if you'd been working on something for 4 hours and the computer just threw it away. And you just did that to yourself.
Anyway next time it will probably take you about half an hour to get to the same stage. Give it your best shot and post it here. Then we can help get it working.
Steve