[Tutorial] How to make a "BOT" replies almost everything player says..
#8

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 11 Guest(s)