05.06.2010, 05:27
Hi!
I'm trying to make a chat with a bot and I don't know how to find a string inside an array, for example:
Anyone got a clue?
I'm trying to make a chat with a bot and I don't know how to find a string inside an array, for example:
Quote:
new Chat[4][128] = { "hi", "how are you?", "hello", "ajsdknjsd" }; if(strfind(text, SEARCH_ARRAY_OF_ANSWERS) != -1) <- I want to check the "Chat" array for the possible answers a player can make. I dont wanna be full of "if" or "elses" |