This is a section of one plugin where everything else works ok, just this check doesnt. Whats wrong here ?
Code:
public client_connect(id)
{
new sInfo[32], name[32], ip[32], cstr[32];
get_user_name(id, name, 31);
get_user_info(id, gBanKey, sInfo, sizeof sInfo - 1);
get_user_ip(id, ip, 31, 1);
get_pcvar_string(banurl,cstr,31);
if(strlen(sInfo) > 0)
{
log_amx("Banned user (%s - %s ) tried to enter onto server", name, ip);
server_cmd("amx_banip %s 9999 ^"Banned, for unban visit %s^"", name, cstr);
server_exec();
return;
}
}