mIRC Home    About    Download    Register    News    Help

Print Thread
#187862 14/10/07 10:02 AM
S
skovicniq
skovicniq
S
Code:
 
alias writing {
  if (!$read($mircdirnicks.txt,w,$nick)) .write $mircdirnicks.txt $nick
}


its wont work .. Then how to write with out duplicate the nickname ? And i need to clear all nick 30 secs after start writing .. Thanks

Last edited by skovicniq; 14/10/07 10:04 AM.
#187863 14/10/07 10:14 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
All that you need to do is use the -s switch.

Code:
alias writing {
  .write -s $nick $mircdir\nicks.txt $nick
}


If you want to clear all nicks after 30 seconds, just /remove the file after a 30 second timer.

S
skovicniq
skovicniq
S
one more ..

Code:
 
alias check {
if (!read($mircdir/nicks.txt,w,$nick)) .do something
}


Is it right ?

#187876 14/10/07 03:50 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
No its not right your missing the $ in between the ! and read


Link Copied to Clipboard