Quote:
Originally Posted by Cjgogo
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:
pawn Code:
new BotMessage[][]= { "Hi!",//element 0 "I am fine thanks,and you?"//element 1 };
Then use strinfd,and if you find the words:"how are you",then do:
pawn Code:
SendClientMessage(playerid,COLOR_GREEN,BotReply[1]);
Much shorter :P
|
Yea, but for newbies it would be easier to use the one in the tutorial