Raised This Month: $ Target: $400
 0% 

how to upgrade say_bs?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FIYA
Member
Join Date: Sep 2007
Location: Cracow, Poland
Old 09-12-2007 , 12:05   Re: how to upgrade say_bs?
Reply With Quote #4

but doesn't it work on the same basis?
isn't "if ( containi ( said, g_swearWords[i++] ) != -1 )" the same as "if(containi(said,phrase[i]) != -1)"?
that's what i'm trying to avoid. i don't want it to find words containing a trigger word but exactly those words.

for example: lets assume the word i'm trying to set as a trigger is "muff". so if someone writes it on chat it works. but if someone writes "muffler" it works as well and it shouldn't.

i tried to switch containi with equali but then it just triggers with any word or letter written on chat. so if anyone can give it a look and suggest the solution i'd be really grateful.
FIYA 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 16:11.


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