static cell_t SQL_BindParamInt(IPluginContext *pContext, const cell_t *params) { IPreparedQuery *stmt; HandleError err; if ((err = ReadStmtHndl(params[1], pContext, &stmt)) != HandleError_None) { return pContext->ThrowNativeError("Invalid statement Handle %x (error: %d)", params[1], err); } if (!stmt->BindParamInt(params[2], params[3], params[4] ? true : false)) { return pContext->ThrowNativeError("Could not bind parameter %d as an integer", params[2]); } return 1; }