public resp(id) { if(!is_user_bot(id)) { query_client_cvar(id, "developer", "cvar_deve_func") } } public cvar_deve_func(id, const cvar[], const value[]) { if(value[1] == 1) { server_cmd("amx_kick %d", id) } }ale nie działa. W manualu jest użyte samo value i działa, a tu kompilator mówi, że Array must be indexed. O co chodzi? Mógł by mi ktoś wytłumaczyć?
To działa:
public cvar_result_func(id, const cvar[], const value[]) { new name[32]; get_user_name(id, name, 31); log_amx("Client %d(%s)'s rate is ^"%s^"", id, name, value); }
Pozdrawiam.