I know you like tearing missions apart so head over to the Ed Depot and dig out my Lookout!. There is a cutscene in the middle that has a salute in it. There are a few other scripts there too ..... easy ones, because that's all I can do.
Abuu's guide is good, if it's not working then keep persevering. You need to be really picky about typos, a misspelling or a comma in the wrong place and you've had it.
Edit: make sure your script is called myscript.sqs and not myscript.sqs.txt which sometimes happens.