Repository navigation
Callback Formats
imshooter edited this page Nov 29, 2026
·
1 revision
The natives that call a public take its name and a format, with a letter for each value the public receives, in order.
| Letter | Value |
|---|---|
d, i
|
an integer |
f |
a float |
b |
a bool |
s |
a string, copied when the query is sent |
a |
an array, followed by d or i with its size, both passed |
r |
a reference to a variable, which the public may change |
new MySQL:gDatabase;
forward OnRowsRead(playerid, const list[], size);
stock ReadRows(playerid) {
new
list[3] = { 10, 20, 30 }
;
mysql_tquery(gDatabase, "SELECT 1", "OnRowsRead", "iad", playerid, list, sizeof (list));
}
public OnRowsRead(playerid, const list[], size) {
return 1;
}The values are captured when the native is called. A public that is not in the script, a letter that is not valid, or values that do not match the letters make the native return false.
mysql 0.6.0 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Queries
- The cache
- JSON cells
- Prepared statements
- Transactions
- The ORM
- Passwords
- Errors
- TLS
- Coming from another plugin
- Performance
Reference
Functions
Connections
Queries
Cache
- cache_get_row_count
- cache_get_field_count
- cache_get_result_count
- cache_get_field_name
- cache_get_field_type
- cache_get_field_index
- cache_set_result
- cache_get_value_index
- cache_get_value_index_int
- cache_get_value_index_float
- cache_get_value_index_bool
- cache_is_value_index_null
- cache_get_value_name
- cache_get_value_name_int
- cache_get_value_name_float
- cache_get_value_name_bool
- cache_is_value_name_null
- cache_get_row
- cache_save
- cache_delete
- cache_set_active
- cache_unset_active
- cache_is_any_active
- cache_is_valid
- cache_affected_rows
- cache_insert_id
- cache_warning_count
- cache_get_query_exec_time
- cache_get_query_string
- cache_get_errno