24.11.2013, 00:38
Hi. I have problem with my query (Ban System). In debug error from query exists (like 'Duplicate entry 'xxx' for key 'host''), but in code not...
Help guys, I don't know why this doesn't work. I tried to do this with inline, but my "inline callback" wasn't called. Also tried using mysql_affected_rows() and mysql_warning_count(). Getting the same.
Thanks in advance. Waiting for answer.
PS I'm using MySQL plugin (by BlueG and Pain123) R34.
Код:
mysql_function_query(mysql, formatEx("DELETE FROM `mapa_bany` WHERE `gracz` = '%s' OR `host` = '%s'", gracz, gracz), false, "", ""); if(mysql_errno() != 0 && adminid != -1) return SendClientMessage(adminid, -1, "Wystąpił problem. Ban prawdopodobnie nie istnieje lub podano błędne dane.");
Thanks in advance. Waiting for answer.
PS I'm using MySQL plugin (by BlueG and Pain123) R34.