Sorry, I didn't check to see if you were reading the arguments properly. Tested and working
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Plugin", "1.0", ".nnnnn1")
register_clcmd("say", "SayCommand");
}
public SayCommand(id)
{
new szArgs[11];
read_args (szArgs , 10 );
remove_quotes( szArgs );
trim( szArgs[5] );
if ( equal(szArgs, "/try " , 5 ) && strlen(szArgs[5]) )
{
ChoosedNumber( id , str_to_num(szArgs[5]) );
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
ChoosedNumber(id, num )
{
new cpu_number = random_num(0, 100);
client_print(id, print_chat, "Your number = %d. cpu number = %d. These numbers %s.", num, cpu_number , (cpu_number == num) ? "match" : "do not match");
}
__________________