This is strange... it let me compile the script... perhaps when you saved it in notepad, did you change the extension to .nss like, did you save the document as (this is an example) rec_republic.nss and then when you compiled and it asked for a name, did you put the same name but with a .ncs extension, such as if you labeled it rec_republic.nss then it would need to be named rec_republic.ncs while you are compiling it. If you still have problems, pm me your email address and I'll send you the source script and the compiled script.
I just realized something. You used a massively used (by the game) template. If I were you, I'd make it something unique... I wouldn't use the repsoldier... change it to whatever the name of the new party member is.