Well, you might want to replace that writeini bit to this:
Code:
writeini $qt($scriptdirmas.ini) settings $1 $2-