You had lots of errors.... Updated code:
on :Op:#:{
if ($opnick == $me ) && ($nick == $me) msg $chan I opped myself.
else msg $chan 12 15Thanks15 15for15 15the15 15@15 $nick 12
}
on :Voice:#:{
if ($vnick == $me) && ($nick == $me) msg $chan I voiced myself.
else msg $chan 12 15Thanks15 15for15 15the15 15+15 $nick 12
}