If there are no creative ideas in,ur mind so proggraming is useless Is this true?
Not really. You can still improve on other people's projects to achieve better functionalities, if you can't come up with a more creative idea.
Totally agree with @Hatsy. In addition, when ideas are not coming up, take a break, chill out, go for code walk through on others code and start afresh. Good luck.:)