We need more information. Did your rifle shoot a reasonably tight group, just way off the line of sight? If so, this just means you have to adjust your sights. If you can see the group is out of line with the barrel just by eyeballing it, maybe there could be some other problem. I think others have given you some good advice. Don't panic. Think your way through it. Consult a good gun smith in person if need be.