Raised This Month: $ Target: $400
 0% 

[GEOIP] Multiple word countries how to find out..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-29-2006 , 01:41   Re: [GEOIP] Multiple word countries how to find out..
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {     server_print("Matches: United-States %i", HowManyMatches("United-States  United-States U nite d-S tates U nite d-S tates United-States  U nite d-S tates", "United-States"));     server_print("Matches: How %i", HowManyMatches("How Why Where How I went to the mark? How to kill a person?", "How")); } // Not case senstive HowManyMatches(what[], with[]) {     new a, pos, count, len2 = strlen(with), test = strlen(what);     while(pos < test)     {         a = containi(what[pos], with);         if(a == -1)         {             break;         }         pos += len2 + a;         count++;     }     return count; }

Edit:

Wait you mean how many complete words there are? or how many of a certain word?

ie..
1 word United
2 word States

Like that is what you mean?
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by teame06; 10-29-2006 at 02:49.
teame06 is offline
Send a message via AIM to teame06
 



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 04:44.


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