Quote:
|
what you show me from your code is not enough to say something.
|
PHP Code:
public client_putinserver(id)
{
new info[32];new _info=get_user_info(id,"*hwID",info,31)
if((!_info)||(!get_user_flags(id)&&ADMIN_USER))
return PLUGIN_HANDLED
new Handle:query=SQL_PrepareQuery(sqlx,"Select `hwid` from `%s` where `hwid`='%s'",table,info)
SQL_Execute(query)
new _col=SQL_FieldNameToNum(query,"hwid")
new buff[32]
SQL_ReadResult(query,_col,buff,31)
if(equali(buff,""))
return PLUGIN_HANDLED
server_cmd("kick #%d [*myAC] You have been banned from this server.",get_user_userid(id))
SQL_FreeHandle(query)
return PLUGIN_HANDLED
}
Quote:
|
you donīt check if you got a result before you read the result.
|
How i can do it?
Please, if not hard, can you give me a correct part of code with it?