okay but if i stop the gas and continue my salat so is my namaz accepted?

If you do not pass gas then your salat is not invalidated