[OFF-TOPIC]
@ LEE: "%s" implies that the argumet be treated as array and will copy the content of that array beginning with the first element supplied and ending it when it reads '/0'. So instead of using "arg" as a way to get all the text you could use arg[0] as well because strings are always passed by reference. Having said that, arg[6] is a sub-text of arg[0] which starts at position 6 in the array. If we use anything else than "%s" then it's treated as a SINGLE element and then your statement is correct.
[/OFF-TOPIC]
@ lucky109: If we get inside this if(equali(arg, "!test ", 6)) then arg[6] will hold the text said. A more elaborate way for this:
PHP Code:
public handle_say(id){
new arg[64]
read_args(arg, sizeof arg)
remove_quotes(arg)
trim(arg)
if(equali(arg, "!test", 5)){
trim(arg[5])
// At this point arg[5] holds the text said after "!test"
// arg[5] starts with the first non-space char
client_print(id, print_chat, "[AMXX] %s", arg[5])
}
}
Ex:
say "this won't show anything because it's missing !test"
say "!test this would show" <- will print "[AMXX] this would show"
say "!testthis would show also" <- will print "[AMXX] this would show also"
say "!test_______________________________________ _______will show too" <- will print "[AMXX] will show too"