Skip to content

mysql_tquery_format

imshooter edited this page Dec 1, 2026 · 2 revisions

Format and send a query that runs after the queries sent before it, and call a public when it is done.

The values of the public come first, as many as format has letters, then the values of the query.

mysql_tquery_format(handle, "SELECT * FROM players WHERE id = %i", "OnPlayerLoad", "i", playerid, id);
native bool:mysql_tquery_format(
    MySQL:handle,
    const query[],
    const callback[],
    const format[],
    MYSQL_TAGS:...
);

Parameters

Parameter Description
MySQL:handle Handle to send it through.
const query[] The query, formatted with the values after those of the public, or sent as it is without any.
const callback[] Public to call, or "".
const format[] Letters of the values the public receives, or "".
MYSQL_TAGS:... The values of the public, then those of the query.

Returns

  • true when it was sent.
  • false when the handle does not exist, the callback is not a public of the script, the values do not match the formats, or a limit of the handle refused it.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally