Hey.
I used the parse() function in the 'say' hook function and it doesnt work properly I don't know why. I did the following:
PHP Code:
public plugin_init()
{
// bla bla...
register_clcmd("say", "say_hook")
}
public say_hook(id)
{
new message[100]
read_args(message, 99)
new part1[50], part2[50]
parse(message, part1, (sizeof(part1) - 1), part2, (sizeof(part2) - 1))
client_print(id, print_chat, "Arg1 = %s, Arg2 = %s", part1, part2)
}
When I try for example type
/points p1Mp, it prints then this:
Code:
Arg1 = /points, Arg2 =
And that's wierd, I don't get why is arg2 is nothing, the parse should copy the 2nd arg into part2 variable.
What am I doing wrong?
Thanks in advance.
__________________