Sustain Issue

I add one sustain ped to all my score from start to the end, But when first and second ending it come after second ending it become without sustain

Yes, that’s a the expected behaviour. It’s not how it would normally be notated in published music, so it’s not a high priority for us to change this. In fact, I would go so far as to say that we have no plans to change this. You can reasonably easily add additional pedal lines, and persuade them not to appear by messing around with their properties. But I think the better way to achieve the effect of simply depressing the sustain pedal at the start of playback is to write that data into the automation lane in Play mode.

For more information about automation lanes, see the Operation Manual.