Jump to content

I get a wierd error...


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...