mIRC Home    About    Download    Register    News    Help

Topic Options
#95152 - 22/08/04 03:57 PM Code not working
Ninko Offline
Vogon poet

Registered: 29/06/04
Posts: 139
Loc: England, UK
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

Top
#95153 - 22/08/04 04:19 PM Re: Code not working
Mentality Offline
Planetary brain

Registered: 01/06/03
Posts: 5024
Loc: London, England
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

Top
#95154 - 22/08/04 04:33 PM Re: Code not working
Ninko Offline
Vogon poet

Registered: 29/06/04
Posts: 139
Loc: England, UK
Ok thanks m8, that fixed it!

Take care smile

Top