mIRC Home    About    Download    Register    News    Help

Print Thread
#36697 16/07/03 01:45 PM
Joined: Feb 2003
Posts: 20
F
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
}

#36698 16/07/03 01:47 PM
Joined: May 2003
Posts: 2,265
P
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
#36699 16/07/03 06:02 PM
Joined: Jun 2003
Posts: 67
D
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
}

Link Copied to Clipboard