25.01.2018, 19:17
Yes.
Swap that
for
. Then the row number (first parameter) becomes i, instead of 0, 1, 2, 3 etc.
This is how i used to load a few hundred vehicles anyway, possibly someone has a better way of doing it.
Swap that
pawn Код:
t < 5; i++
pawn Код:
t < cache_num_rows(); i++)
This is how i used to load a few hundred vehicles anyway, possibly someone has a better way of doing it.
pawn Код:
if(cache_num_rows() > 0)
{
for(new i=0; t < cache_num_rows(); i++)
{
cache_get_value_int(i, "Object%d", Player[playerid][Object][%d]);
}
}