mIRC Home    About    Download    Register    News    Help

Print Thread
#180076 03/07/07 02:05 PM
Joined: Jul 2007
Posts: 15
4
4ndr3w Offline OP
Pikka bird
OP Offline
Pikka bird
4
Joined: Jul 2007
Posts: 15
hey im just wondering if its possible to make something like:

say someone in the channel im in said something like:

TV - Prison.Break

how would i get it to write into .ini files as

[Prison.Break]
n1=nick1
n2=nick2
n3=nick3

like all the n1,2,3 going up in order?

Thanks

4ndr3w #180081 03/07/07 02:31 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
A very small and simple example, based on your post
Code:
on *:text:TV - *:#:{
  var %lines = $calc($readini(TV_Shows.ini,n,$$3-) + 1)
  .writeini -n TV_Shows.ini $$3- $+(n,%lines) $nick
}


Link Copied to Clipboard