Raised This Month: $51 Target: $400
 12% 

[STRING.INC] containi


  
 
 
Thread Tools Display Modes
Author Message
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 11-30-2005 , 13:27   [STRING.INC] containi
#1

containi is case sensitive, when the function wiki says that it should be case insensitive.

Code:
remove_poser(id, name[]) {     new pName[32]     get_user_name(id, pName, 31)         if ((containi(pName, "BigBaller") == 0)) {             client_cmd(id,"name ^"[ADMIN] %s^"", name)         }     return PLUGIN_CONTINUE }

The plugin would only change the username "BigBaller" if both B were capitalized, sooo I do believe this is a bug? unless of course contain is the one that is case insenstive.

[EDIT]

I believe I corrected a mistake I made, however it would be nice if you guys could check into this still just to make sure im not losing my mind lol.

[EDIT #2]

Ok, I do believe the problem I was having constant string or "BigBaller" like that in the script. I changed it to all lower case and it worked flawlessly, or as it should, soo I guess it would make a good note to suggest that if others have same sort of problem.
BigBaller 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 00:24.


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