Raised This Month: $ Target: $400
 0% 

contatini() and its realisation in some plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-15-2009 , 12:27   Re: contatini() and its realisation in some plugin
Reply With Quote #3

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 sizeof CheatReports i++ )
    if( 
containisaid CheatReports[i] ) != -)
        
server_print"Message found" ); 
__________________
Bugsy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode