Then that is a problem on your side as the code is fine.
Are your remotes on? Type /remote on
Also type //echo -a $base($remote,10,2,3)
and tell me what it echoed.
Also, make sure that you add this to a new script file, because if you have other on join code in that script file, it will not trigger. Press alt+r, go to "File" --> click "New" and paste the code there.
By the way, you did change #example to the actual channel that you want this to trigger on, right?
If you want it to trigger on all channels you join, simply put #
If you want it to trigger on 1 channel, for example "#example", put #example
If you want it to trigger on multiple channels, seperate them with a comma like this: #mirc,#help,#fop