mIRC Homepage
Posted By: Ninko Code not working - 22/08/04 02:57 PM
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
Posted By: Mentality Re: Code not working - 22/08/04 03:19 PM
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,
Posted By: Ninko Re: Code not working - 22/08/04 03:33 PM
Ok thanks m8, that fixed it!

Take care smile
© mIRC Discussion Forums