mIRC Homepage
Posted By: fallen248 what is wrong with this? - 16/07/03 01:45 PM
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
}
Posted By: pheonix Re: what is wrong with this? - 16/07/03 01:47 PM
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
}
}
Posted By: demitrix Re: what is wrong with this? - 16/07/03 06:02 PM
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
  }
} 
© mIRC Discussion Forums