I'm a newbie at this so plz be nice.
What is wrong?
I get this error:
Client with that name or userid not found
note this is only a small part of the code
Code:
public client_connect(id)
{
new steamuserid[32]
get_user_authid(id,steamuserid,31)
new Result:res = dbi_query(mysql, "SELECT nick FROM medlemar WHERE steamid='%s'", steamuserid)
if (res <= RESULT_NONE) {
server_cmd("amx_ban %s 1 reason",id)
return 1
}
client_cmd(id,"nick %s",res)
return PLUGIN_CONTINUE
}