mIRC Home    About    Download    Register    News    Help

Print Thread
#95152 22/08/04 02:57 PM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
Hi there,
Just a quick question, is there any reason for the following code not working:

on *:TEXT:!vote *:?:{
write C:\Program Files\mIRC\Trivia\Vote.txt Nick: $nick Date: $date Time: $time Voted: $2-
/msg $nick Thank you $nick
}

For some reason it aint writing to the file when it did before, only difference is I changed the location of the file. I have checked that I have changed the file path correctly but still it won't work. Any ideas?

Thanks smile

#95153 22/08/04 03:19 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
When specifying a directory with spaces, you need to surround the path in quotes - " "

on *:TEXT:!vote *:?:{
write "C:\Program Files\mIRC\Trivia\Vote.txt" Nick: $nick Date: $date Time: $time Voted: $2-
msg $nick Thank you $nick
}


(Note: you don't need to specify the / in commands in a script)

Regards,


Mentality/Chris
#95154 22/08/04 03:33 PM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
Ok thanks m8, that fixed it!

Take care smile


Link Copied to Clipboard