greenmachine Posted February 6, 2006 Share Posted February 6, 2006 Put this in your AIML_Respond function after the line $pos = _ArraySearch ($patterns, $message): _ArrayDisplay ($patterns, "patterns") _ArrayDisplay ($templates, "templates") MsgBox (0, "pos", $pos) Something about your xml stuff is only returning the first pattern, and since you have "For $i = 0 To $categories_num" to put the values in the arrays, every space (including 0, which is defaulted in the respond function) is filled with "hello" and "hi there", respectively. Change the for line to "For $i = 1 To $categories_num" and you can at least fix 1 pattern. Link to comment Share on other sites More sharing options...
theguy0000 Posted February 6, 2006 Author Share Posted February 6, 2006 Yes! I got it to work! thanks so much! The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now