Please Disable Ad-Block To View This Website.

If you block ads, this site can not survive!

Ads are very minimal for registered users. If you don't have an account please register now!

DOWNLOAD
 Full Scripts
 Addons
 Snippets
 DLLs
 MTS Themes
 Tutorials
 Misc.
 File Queue
 Download mIRC
INTERACT
 Screenshots
 Challenge
 Top Downloads
 Submit Form
 Forums

SEARCH
Site Search

FRIENDS
Link to us!
PhotoShelf

Home | Forum:
mircscripts.org Forums > Scripting Help     Search Forums...

  Thread mode:   Index | < Prev. | Next >

nintendud
  new!   Problem with reading a random line with $read...Copy to Clipboard

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 4:15PM


Replies


 Problem with reading a random line with $read... - nintendud (Jun 24, 2005 @ 4:15PM)   new!   

 RE: Problem with reading a random line with $read... - Big-L (Jun 24, 2005 @ 4:57PM)   new!   

 RE: Problem with reading a random line with $read... - nintendud (Jun 24, 2005 @ 5:09PM)   new!   

 RE: Problem with reading a random line with $read... - myndzi (Jun 25, 2005 @ 4:22AM)   new!   



Post Reply

You must be logged in to post messages.