egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script Code Error: I Cant Find What Is Wrong. Please Help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Stupidman
Voice


Joined: 11 Sep 2007
Posts: 7

PostPosted: Tue Oct 09, 2007 3:47 pm    Post subject: Script Code Error: I Cant Find What Is Wrong. Please Help Reply with quote

http://pastebin.com/m5c82b9f
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Oct 09, 2007 3:58 pm    Post subject: Reply with quote

Some kind of explanation of the problem would be nice...

However, one issue that's easy to see, is that you've messed up the binding, by putting a { at the end... It should not be there...

Edit:
Also, you cannot use C-style indenting as tcl is newline terminated. Structures such as below will not work simply because the commandline is terminated prematurely:
Code:
command param1 param2 {param 3 with spaces}
{
param4
}

This will be interpreted as two separate commandlines.
In this example, proper code would be:
Code:
command param1 param2 {param 3 with spaces} {
param4
}

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Stupidman
Voice


Joined: 11 Sep 2007
Posts: 7

PostPosted: Tue Oct 09, 2007 4:10 pm    Post subject: hi nml Reply with quote

hi nml, im sorry

[13:07] Tcl error in file 'strict.conf':
[13:07] wrong # args: should be "proc name args body"
while executing
"proc m:chan {nick uhost hand chan text} "
(file "scripts/file.tcl" line 91)
invoked from within
"source scripts/file.tcl"
(file "strict.conf" line 195)
[13:07] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

but i did take away the thing you told me and now its fine except this.
Back to top
View user's profile Send private message
Stupidman
Voice


Joined: 11 Sep 2007
Posts: 7

PostPosted: Tue Oct 09, 2007 4:27 pm    Post subject: I got it Reply with quote

I got it to work thanks alot.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Oct 10, 2007 1:17 pm    Post subject: Reply with quote

Just for your future reference, to load scripts without them crashing the bot, and get more useful debug info:

http://forum.egghelp.org/viewtopic.php?p=63899#63899

http://forum.egghelp.org/viewtopic.php?t=10215
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber