Is the CheatReports array an array of strings containing the strings you are checking for? If so you can remove the
[j] from the containi() check. Hope this helps
Little example:
PHP Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "bugsy"
//Array of strings for words you are checking for
new const CheatReports[][] = { "hello" , "my" , "friend" };
//What the person said in chat
new said[] = "say hello to my little friend.";
//Check what person said with all words in CheatReports array.
//You will see 3 "Message found" msgs for "hello", "my", and "friend"
for ( new i = 0 ; i < sizeof CheatReports ; i++ )
if( containi( said , CheatReports[i] ) != -1 )
server_print( "Message found" );
__________________