02.09.2012, 12:58
Wouldn't it be easier to use strfind,and make an array that would store for about 30 replies of the bot?And select the bot's reply through an index,as you know the elements of the array,like:
Then use strinfd,and if you find the words:"how are you",then do:
Much shorter :P
pawn Code:
new BotMessage[][]=
{
"Hi!",//element 0
"I am fine thanks,and you?"//element 1
};
pawn Code:
SendClientMessage(playerid,COLOR_GREEN,BotReply[1]);