Raised This Month: $ Target: $400
 0% 

Having problem with containi


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 03-27-2011 , 05:22   Having problem with containi
Reply With Quote #1

I'm trying to make a restriction for clients who changed their name or uses symbols: "~ `"

Here is the code:

PHP Code:
public client_infochanged(id)
{
new 
Name[32]

get_user_name(idName31)

   if(
containi(Name"`"))
   {
      
set_user_info(id"name""SYMBOL")
   }
return 
PLUGIN_HANDLED

The code it's working only if the client change his name into "`". But if the client change his name into "`````````" or "a``````````" the code won't work.
killergirl is offline
 


Thread Tools
Display Modes

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 14:40.


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