Please do not duplicate the same thread you have already started, your thread http://arduino.cc/forum/index.php/topic,147562.0.html
The fact you received little assistance in that thread is no reason to re-create an identical thread.
And I will repeat what I mentioned to you in your other thread here again for you;
You would be better served if you posted this topic in 'General Electronics' or 'Programming Questions' section of the forum, possibly more people will notice it there.
Also, please try to be as descriptive and clear as possible, spend a few extra minutes to do this and provide code in the code section brackets so it is displayed correctly. It is provided there for you as a button on the online editor.
You can also help yourself much more by making use of serial print statements to see what is happening with your code.
That way you will learn.
i don't have many time and thanks
You will need to make time, if you are wanting to succeed!
Use this forum, use google, use your brains to learn, enjoy and have a sense of achievement with Arduino.
Again you fail to read or understand to place your code within the codes brackets.
Maybe a MODERATOR could please move this thread and help this guy.