AMX Mod X API Documentation

Signature
stock SQL_QueryAndIgnore(Handle:db, const queryfmt[], any:...){ static query[4096]; new Handle:hQuery; new ret; vformat(query, sizeof(query)-1, queryfmt, 3); hQuery = SQL_PrepareQuery(db, "%s", query); if(SQL_Execute(hQuery)) { ret = SQL_AffectedRows(hQuery); } else { ret = -1; } SQL_FreeHandle(hQuery); return ret;}
Description

Use this for executing a query and not caring about the error.

Parameters
  • db A connection handle returned from SQL_Connect().
  • queryfmt The query string that can be formated with format specifiers.
  • ... Additional arguments for formating the query.
Returns

-1 on error.

>= 0 on success (with the number of affected rows).

Назад
Верх