Raised This Month: $ Target: $400
 0% 

handle_say and read_argv Problem~


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 06-22-2007 , 12:53   handle_say and read_argv Problem~
Reply With Quote #1

Code:
public plugin_init() {
	register_clcmd("say", "handle_say");
}

public handle_say(id)
{
    new arg[32]
    read_argv(2,arg,31)
    new tag[64]
    read_args(tag,63)
    if(  containi(tag, "!test") != -1 )
    {
    client_print(id, print_chat, "[AMXX] %s", arg);
    }
}
i want to get the words when people type !test helo
it's show "[AMXX] helo" right

i'm tried it's work if type "say !test helo" in console
can't work if press Y to type "!test helo"

how can fix it?

Last edited by lucky109; 06-22-2007 at 12:56.
lucky109 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 21:31.


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