Molson™ Posted July 20, 2007 Report Share Posted July 20, 2007 (edited) Anyone have any idea why these don't work? raw 305:*: { var %N = $me, %x 1 while (%x <= $Chan(0)) { var %Chan = $Chan(%x) if ($me(%Chan, %N)) { echo -c Other %Chan $replace($tstamp,04,05) 14 (05-15 Return 05-14) (05-15 Your no longer away 05-14) cline -l $Color(gray) %Chan $Fline(%Chan, %N, 1, 1) } inc %x } halt } raw 306:*: { var %N = $me, %x 1 while (%x <= $Chan(0)) { var %Chan = $Chan(%x) if ($me(%Chan, %N)) { echo -c Other %Chan $replace($tstamp,04,05) 14 (05-15 Away 05-14) (05-15 Your marked as being away 05-14) cline -l $Color(gray) %Chan $Fline(%Chan, %N, 1, 1) } inc %x } halt } Edited July 20, 2007 by Molson™ Link to comment Share on other sites More sharing options...
Guest Travis Posted July 20, 2007 Report Share Posted July 20, 2007 Whats this supposed to do? $me(%Chan, %N) And why make a local variable for $me? why not just use $me? Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted July 20, 2007 Report Share Posted July 20, 2007 Using variables in raws royally screw up your codes Link to comment Share on other sites More sharing options...
Guest Travis Posted July 20, 2007 Report Share Posted July 20, 2007 How so X? Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted July 20, 2007 Report Share Posted July 20, 2007 Like I said, they could. It depends on how you use them. Server raws should be used with mIRCs inbuilt functions, such as $comchan or $chan. Whereas error replies shouldn't really serve to much of a problem. Anyway, Molson .. raw 305:*: { var %chan = $comchan($me,1) echo -c Other %chan $replace($tstamp,04,05) 14 (05-15 Return 05-14) (05-15 Your no longer away 05-14) cline -l $Color(gray) %chan $fline(%chan,$me,1,1) haltdef } raw 306:*: { var %chan = $comchan($me,1) echo -c Other %chan $replace($tstamp,04,05) 14 (05-15 Away 05-14) (05-15 Your marked as being away 05-14) cline -l $Color(gray) %chan $fline(%chan,$me,1,1) haltdef } Should work. If it doesn't, try not to use variables and see what happens. Link to comment Share on other sites More sharing options...
Molson™ Posted July 20, 2007 Author Report Share Posted July 20, 2007 Work thanks, fus. Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted July 20, 2007 Report Share Posted July 20, 2007 NP 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