mIRC Home    About    Download    Register    News    Help

Print Thread
#72587 24/02/04 12:05 AM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Hi i'm making a kinda message thingy and it works ok cept if one person is named mike and another mike1 it reads both as mike. Here tis
on *:text:*!review*:#:{
if ($2 == $null) { msg $nick review who? }
if ($2 !isin $read(messages.txt,nw, *$2*)) { msg $nick $2 is not in my records }
if ($2 != $null) { $read(messages.txt,nw, *$2*) }
}
messages.txt go like this msg $chan $2 said
i tried *[$2]* that don't work either. any ideas?

#72588 24/02/04 01:56 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
*$2*

replace with

msg $chan $2 said *
or
msg $($chan,0) $2 said *

one or the other becuase im couldnt work out if you ment the text file actuially had "$ C H A N" or if it have the channel writtne in there.

#72589 24/02/04 05:54 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try this:
Code:
on *:text:*!review*:#:{
  if ($2 == $null) { msg $nick review who? | return }
  var %i = 1
  while $read(messages.txt,nw,$+(*,$2,*),%i) {
    var %a = $ifmatch,%i = $readn + 1
    if $istok(%a,$2,32) { %a | return }
  }
  msg $nick $2 is not in my records
}

#72590 24/02/04 05:01 PM
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Thanks Lori


Link Copied to Clipboard