If i used NaCl to try to precipitate Ag+ from a solution, will it be as effective as HCl?

Assistance needed.