| nintendud | | 
| User: | #34715 | | Joined: | Jun 24th 2005 | | Posts: | 2 |
| Okay, for some reason, this worked before but now it doesn't. I wonder if it is a bug with the $read function when it has a larger text file?
Anyway, it's a quotes script, and everything I coded works fine except this one simple feature.
When someone types !quote, it's supposed to display a random quote. However, recently, it messages TWO random quotes to the channel whenever someone types !quote once. I don't understand what the problem is. Could it be a bug in mIRC's function to read a random line from a text file? The code is:
on *:TEXT:!quote*:#: {
if ($2 == $null) {
msg $chan $read(%quotetext)
}
%quotetext is the var that holds the path to the text file.
Does anyone know what might be the problem?
| |
| | Jun/24/2005 12:15PM | |
|