Raised This Month: $ Target: $400
 0% 

handle_say


Post New Thread Reply   
 
Thread Tools Display Modes
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 05-02-2010 , 18:32   Re: handle_say
Reply With Quote #11

ty for the help ur right last if isn't needed now working correctly i think
liryck is offline
Send a message via MSN to liryck
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-02-2010 , 18:37   Re: handle_say
Reply With Quote #12

Also, you can simplify it a lot. Just use a for loop.

PHP Code:
if ( arg[0] == '.'  || arg[0] == '!')
{
   for( new 
0sizeof(g_words); i++ )
   {
        if( 
equal(arg[1], g_words[i]))
        {
            
client_cmd(id,arg)
            return 
PLUGIN_HANDLED
        
}
    }

__________________

Last edited by fysiks; 05-02-2010 at 18:40.
fysiks is online now
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 05-02-2010 , 22:15   Re: handle_say
Reply With Quote #13

ye but if u see in the first post i use a for but when i type it only check the first position i dont know why didnt check all so i decide to use the do while
liryck is offline
Send a message via MSN to liryck
Reply



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 22:19.


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