You should pass the destination string to charsmax in string functions, not the source string. Also, you can remove the return PLUGIN_HANDLED in the if statement since the one immediately follows it outside of the if-else statement.
PHP Code:
public cmdGetArgs(id)
{
new args[ 32 ];
read_args( args , charsmax( args ) );
remove_quotes( args );
if( strlen( args ) > 31 )
{
client_print( id , print_chat , "You cant do that" );
client_cmd( id , "messagemode SetArgs" );
}
else
{
copy( PlyrArgs[ id ] , charsmax( PlyrArgs[] ) , args );
}
return PLUGIN_HANDLED;
}
__________________