Skip to content
MSN

Little error.

A TG007 community discussion started by Ricardo.

Discussion 5 posts
Page 1 of 1
Open
Topic #3717 · 5 published posts · 627 views

Hello Tg Fans,

 

I dunno if i am asking it in the right place. Hopefully its the right place

we have an alias Where i set chr caracters to MSN Emoticons.

But its give some error what do i wrong

 

alias es {
 var %e
 %e = $replace($1-,$chr(58),$chr(48),<img src='emoticons/smile.gif'>),$1-,$chr(59),$chr(41),<img src='emoticons/wink.gif'>),$1-,$chr(58),$chr(80),<img src='emoticons/tongue.gif'>)  $&
   ,$1-,$chr(58),$chr(124),<img src='emoticons/what.gif'>),$1-,$chr(58),$chr(40),<img src='emoticons/sad.gif'>),$1-,$chr(58),$chr(79),<img src='emoticons/ooh.gif'>)  $&
   ,$1-,$chr(58),$chr(83),<img src='emoticons/erm.gif'>),$1-,$chr(40),$chr(72),$chr(41),<img src='emoticons/cool.gif'>),$1-,$chr(58),$chr(36),<img src='emoticons/blush.gif'>)  $&
   ,$1-,$chr(58),$chr(64),<img src='emoticons/angry.gif'>),$1-,$chr(58),$chr(68),<img src='emoticons/teeth.gif'>)
 return %e
}

 

if its not allowed to post sucs like this topic here don't me

in mIRC, use the help file. [type in a window, /help $replace]

 

you will see why it is wrong.

 

Basically it is

 

$replace(<string>,<old string>,<new string>,<old string>,<new string>...)

 

but look at the help file and it shows you.

Sorry i know its really stupid to give this error but that help could not help me..

Sorry that i am cannot refresh my mind about it.

 

Must that $1- in there. or does it not need?

or is it missing an ) , I tryed everything.

Edited Jun 6, 2005 11:20 AM by Ricardo

arr here, i can't be bothered explaining, i just hope you learn from what i put here

 

alias esr return <img src='emoticons/ $+ $$1 $+ '>
alias es {
 var %e = $1-
 %e = $replace(%e,$chr(58) $+ $chr(48),$esr(smile.gif),$chr(59) $+ $chr(41),$esr(wink.gif),$chr(58) $+ $chr(80),$esr(tongue.gif),$chr(58) $+ $chr(124),$esr(what.gif),$chr(58) $+ $chr(40),$esr(sad.gif),$chr(58) $+ $chr(79),$esr(ooh.gif))
 %e = $replace(%e,$chr(58) $+ $chr(83),$esr(erm.gif),$chr(40) $+ $chr(72),$esr(cool.gif),$chr(58) $+ $chr(36),$esr(blush.gif),$chr(58) $+ $chr(64),$esr(angry.gif),$chr(58) $+ $chr(68),$esr(teeth.gif))
 return %e
}

I see, Sorry for the mistake, Very nice from you to help.