To help you (or anyone else reading this), you should go into the Alt+R scripts editor, and inside that editor window use the 'options' menu to put a check on the line 'identifier warning' then click 'OK' to exit. Without that line checked, if you paste this next line into the editbox of any #channel:

//echo -a OK $does_not_exist | echo -a message 2

It will display the message "OK". However when that option is checked, it instead halts with displaying a message that the identifier does not exist, and halts before displaying "Message 2".

Seeing that error message in the status window helps identify why scripts do not work, and prevents the script from handling the non-existent identifier as if it were the NULL (empty) string.

Sometimes the problem can be an old mIRC version, which it sounds like could have been your problem.

Sometimes the problem can be trying to use a script that uses a scripted alias that wasn't also given along with the script. That wasn't the case here, though he offered a scripted alias to substitute for the $unsafe identifier which exists in newer mIRC versions.

Yes, it should work now. It should have worked before except we didn't know you were using a really old mIRC version. So no we wouldn't bet money that it was the only thing preventing your mIRC from working fine with this script.