You're missing something, I can't really tel what you're intending to do, but try this

Code:
on *:text:*!MyName*:#MyRoom: {
  if ($2 == $readini($nick $+ .chr,pass,pass)) && ($3 == $readini($nick $+ .chr,name,name)) { DO STUFF }
else notice $nick Wrong information. This is not the name for ($readini($nick $+ .chr,name)