Help with "say /" comands
Hi! I have a problem, how can i read the args from a "say /" command? Here is my code:
Code:
register_clcmd("say /testarg","CmdTestArg")Code:
public CmdTestArg(id)when i write in console "say /testarg 1 2" It works, but when i type with Y it doesn't work |
Re: Help with "say /" comands
Hook the "say" command itself and use "read_args" and "parse" to take the arguments.
|
Re: Help with "say /" comands
Quote:
That's why the only method that should be used is read_args(said, charsmax(said)) + remove_quotes( said ) and then you have to parse args with the method you want. |
Re: Help with "say /" comands
It still doesn't work...
Code:
public CmdTestArg(id) |
Re: Help with "say /" comands
Explain what you are trying to do. Here's an example for you.
PHP Code:
|
Re: Help with "say /" comands
I just want to take 2 strings and show them in chat.
|
Re: Help with "say /" comands
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 07:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.