Skip to content

cache_get_row

imshooter edited this page Nov 29, 2026 · 1 revision

Read the fields of a row of the active cache, in order, into variables.

Each letter of format reads the next field: i or d an integer, f a float, b a bool and s[32] a string with the size of its array. - skips a field. A NULL cell reads as 0 or as an empty string.

cache_get_row(row, "s[37]is[64]f", uuid, slot, name, price);
native cache_get_row(row_idx, const format[], {Float, _}:...);

With open.mp names, from the same include:

native Cache_GetRow(row_idx, const format[], {Float, _}:...);

Parameters

Parameter Description
row_idx The row, from 0.
const format[] The fields to read.
{Float, _}:... The variables.

Returns

  • How many fields were read.

Home

Guides

Reference

Functions

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

Clone this wiki locally