your question is not clear enough for a good answer
but i would be great if you could post your code and indicate the code where you get an error