Skip to content
MSN Addons

all of txt not

A TG007 community discussion started by samooh_2003.

Discussion 2 posts
Page 1 of 1
Open
Topic #6955 · 2 published posts · 910 views

now plz i used to add memebrs to my List ( owner - host ) or wtever it was , so when i tried to add local and Global just want to ask abt some thing for adding from popup >> nicklist ,

 

i am adding them like the following :

 

Local:

 

Address nick 1stchannel

address nick 2ndchannel

etc...

 

 

Global :

 

address $nick

 

 

 

so when i add local one say in 1st group and i added the the same member to local but in other group

 

and i did this in the adding code

 

...Local:{ if $read(text/list.txt, s, $address($$1,1)) && ($gettok($read(text/list.txt,$readn),3,32) isin #) { echo -a [4Error1]:12 sorry sir $msn.decode($$1) Already in my list as Local | halt } } 

 

 

 

its only used for the first line for that member will c it and if their are any later lines for that nick ( other group ) wont c it so i am asking how may i make it to c all of the text ( even may i make text for each room but i am not gonna add alot off ppl in this text just 10 or may be more with a few members so need it to read all of the text for the selected nick or may i do a loap but need more help plz to get it easier ) thnx

 

there are better ways to do so,

 

write them using ini format..

writeini -n Folder\Filename.txt [Subheader] @GateKeeperPassport Nickname 

that way it makes things alot simpler to do, so u could use..

writeini -n Text\List.txt $remove($replace($right(#,-2),\b,$chr(32)),!) $address($$1,1) $msn.decode($$1)

Giving you if you channel name was !!!!!'MSHS'!!!!! it would leave 'MSHS', i did this so if the room gets taken and u make another room with 'MSHS' in it no matter how many !!! u add it will still work..

 

so the file would contain

 

['MSHS']

*!*123456789@GateKeeperPassport=Nickname

 

then all u would have to do is use ..

..$iif($ini(Text\List.txt,$remove($replace($right(#,-2),\b,$chr(32)),!),$address($$1,1)),$style(2)) Add:{ then your adding code here.. }

what will happen then is if the person is already in your local then it will disable the Add bit in the popup menu.

 

if u really wanted a message to show up in the channel screen then use this one..

..Add:{
 if ($ini(Text\List.txt,$remove($replace($right(#,-2),\b,$chr(32)),!),$address($$1,1))) { error msg here... }
 else {
   Your code for adding the user here... 
 }
}

hope these help and make things a bit more clearer .. :):taz:

Edited Jul 9, 2006 12:09 PM by Entox|cated