Sorry for the delay, I dont come down the this forum often enough i think.
Abstracto was right at the start "%" is a special character to 3dGS. Anytime you want it in a string, you need to put %% instead, kindof like \ needs to be \\ sometimes.
Otherwise your code looks OK.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial