User Control Panel
Advertisements

HELP US, HELP YOU!

Love to but

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Fri Dec 31, 2004 7:21 pm    Post subject: Reply with quote

in elsif

Code:
#Made By Purcelly <br />#For Innington<br /><br />if($msg =~ /^!lovetobut/)<br />{<br />&send($self,"Here is one way to get out out of doing something:");<br />open (FILE, "./loveto.txt");<br />@bat = <FILE>;<br />close (FILE);<br /> $result = $quotes[int(rand(scalar(@quotes)))];<br /> $self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}<br />}
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Dec 31, 2004 7:44 pm    Post subject: Reply with quote

QUOTE(purcelly-tech @ Dec 31 2004, 02:21 PM)
in elsif

Code:
#Made By Purcelly <br />#For Innington<br /><br />if($msg =~ /^!lovetobut/)<br />{<br />&send($self,"Here is one way to get out out of doing something:");<br />open (FILE, "./loveto.txt");<br />@bat = <FILE>;<br />close (FILE);<br /> $result = $quotes[int(rand(scalar(@quotes)))];<br /> $self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}<br />}

Once again you posted code you did not test:

Quote:
open (FILE, "./loveto.txt");
@bat = ;
close (FILE);
$result = $quotes[int(rand(scalar(@quotes)))];


Your array names do not match.

Stop posting crap, test your codes before you post them.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Fri Dec 31, 2004 7:45 pm    Post subject: Reply with quote

Again rodent curly brackets.... and no quotes array
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sat Jan 01, 2005 11:30 pm    Post subject: Reply with quote

heres the working code

Code:
#Made By Purcelly-tech<br /><br />if ($msg eq "lovetobut) {<br />open (FILE, "./loveto.txt");<br />@bat = <FILE>;<br />close (FILE);<br />my $result = $bat[ int rand scalar @bat];<br />$self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group