mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 6
J
Jonkka Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2005
Posts: 6
I need some help about this because i cant put the $nick identifier in the scriptl like this

write -ds$nick file.txt

as it only seems to work with plain text
Anybody know another way of doing this?

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Use $+ or $+():

write -ds $+ $nick
write $+(-ds, $nick)


New username: hixxy
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try using the $+() identifier.

So //write $+(-ds,$nick) file.txt.

-Andy

Joined: May 2005
Posts: 6
J
Jonkka Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2005
Posts: 6
thank you very much, works fine now laugh

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
It's too easy, but you can just keep the space:

/write -ds $nick file.txt

or even:
/write -ds "3 word stuff" file.txt

Joined: Jun 2005
Posts: 1
L
Mostly harmless
Offline
Mostly harmless
L
Joined: Jun 2005
Posts: 1
on 1:dialog:s8wfc1:sclick:3: {
write -ds $+ $did(1).seltext $scriptdirwarfinder1.txt
}

Heres my code this button is supposed to delete a channel from a text file. The channel it deletes is what is selected in the list. But when i do this it isn't deleteing the channel and in my text file it contatins:
#acf
#p
#YGS
etc. can anyone tell me why?


Link Copied to Clipboard