[Tutorial] How to make an auto-reply chat bot
#3

pawn Код:
if(strfind(text,"Bruce",true) != -1) return 1;    else    {        if(strfind(text,"Lee",true) != -1) return 1;        else return 0;    }

Could instead be

pawn Код:
if(strfind(text, "Bruce", true) != -1 || strfind(text, "Lee", true) != -1) return 1;
What if there is someone called Bruce or Lee in the server?

You should just look for the full word instead of sections of the name.
Reply


Messages In This Thread
How to make an auto-reply chat bot - by DavidBilla - 15.11.2014, 18:14
Re: How to make an auto-reply chat bot - by Glossy42O - 15.11.2014, 18:17
Re: How to make an auto-reply chat bot - by sammp - 15.11.2014, 18:18
Re: How to make an auto-reply chat bot - by DavidBilla - 15.11.2014, 18:25
Re: How to make an auto-reply chat bot - by sammp - 15.11.2014, 19:10
Re: How to make an auto-reply chat bot - by Pravin - 16.11.2014, 02:57
Re: How to make an auto-reply chat bot - by Emmet_ - 16.11.2014, 03:10
Re: How to make an auto-reply chat bot - by DavidBilla - 16.11.2014, 07:22
Re: How to make an auto-reply chat bot - by Kyance - 16.11.2014, 14:22
Re: How to make an auto-reply chat bot - by DavidBilla - 16.11.2014, 14:32

Forum Jump:


Users browsing this thread: 4 Guest(s)