You're not saying what kind of error message you're getting or the performance is not as expected. This helps people help you.

Though in this case, it's obvious that you're not using the correct syntax for writeini which can be seen at 2 places:

/help /writeini
or
https://en.wikichip.org/wiki/mirc/commands/writeini