Rhys Posted December 2, 2004 Report Share Posted December 2, 2004 can anyone help me with this code. i can't get it to work. when someone logs out in either %mirc.adminsonline or %mirc.opersonline it removes there name but it just adds the code ($remove(%mirc.adminsonline,%nickname, to the variable. that code was for when an admin logs out. its the same with the opers variable. the code i need help with is here: if ($2 == PRIVMSG) && ($3 == mIRCrosoft_Host) && ($remove($4,:) == !Logout) { if (%nickname $+ $chr(44) isin %mirc.adminsonline) { set %mirc.adminsonline ($remove(%mirc.adminsonline,%nickname $+ $chr(44)) sockwrite -n extreme MODE #mIRCrosoft -o %nickname sockwrite -n extreme PRIVMSG %nickname :You have been logged out. halt } if (%nickname $+ $chr(44) isin %mirc.opersonline) { set %mirc.opersonline ($remove(%mirc.opersonline,%nickname $+ $chr(44)) sockwrite -n extreme MODE #mIRCrosoft -o %nickname sockwrite -n extreme PRIVMSG %nickname :You have been logged out. halt } elseif (%nickname $+ $chr(44) !isin %mirc.adminsonline) || (%nickname $+ $chr(44) !isin %mirc.opersonline) { sockwrite -n extreme PRIVMSG %nickname :You are not logged in. halt } } please can someone help Link to comment Share on other sites More sharing options...
Ozzy10 Posted December 2, 2004 Report Share Posted December 2, 2004 you had this ($remove(%mirc.opersonline,%nickname $+ $chr(44)) and it should be this $remove(%mirc.opersonline,%nickname $+ $chr(44)) Link to comment Share on other sites More sharing options...
Rhys Posted December 2, 2004 Author Report Share Posted December 2, 2004 (edited) thanks ozzy. i did try that but it didn't work at all and now it has. thanks anyway Edited December 2, 2004 by xRhysx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now