error in using threadIdx.x as integer

Thanks for the reply.
I forgot where that code was,please give me sometime .

As soon as I find the code I will post it.