mIRC Home    About    Download    Register    News    Help

Print Thread
what is wrong with this? #36697 16/07/03 01:45 PM
Joined: Feb 2003
Posts: 20
F
fallen248 Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2003
Posts: 20
ok, i want my bot to be able to search for registered users, the bot already makes the ftpxsites.dat file fine..so i wrote this script to search, it works fine if the user isnt found, but when the user is found it doesnt .notice anything...whats wrong with it??

on *:TEXT:.searchmember*:*:{
{
/set %ftpusername $readini(ftpxsites.dat, $2, User)
if (%ftpusername == $null) {
.notice $nick member not found
}
elseif (%ftpusername !==$null) {
.notice $nick member was found
}

Re: what is wrong with this? #36698 16/07/03 01:47 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:TEXT:.searchmember*:*:{
/set %ftpusername $readini(ftpxsites.dat, $2,*,s)
if (%ftpusername == $null) {
.notice $nick member not found
}
elseif (%ftpusername !==$null) {
.notice $nick member was found
}
}

Last edited by pheonix; 16/07/03 01:58 PM.

new username: tidy_trax
Re: what is wrong with this? #36699 16/07/03 06:02 PM
Joined: Jun 2003
Posts: 67
D
demitrix Offline
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
actually shouldnt it be like this
Code:
on *:TEXT:.searchmember*:*:{
  /set %ftpusername $readini(ftpxsites.dat, $2,*,s)
  if (%ftpusername == $null) { 
    .notice $nick member not found 
  }
  elseif (%ftpusername != $null) {
    .notice $nick member was found
  }
} 


while (demi == nub) {
inc %skill
}