04.06.2013, 14:24
I'd say use a while loop, but I just noticed there is caching. Either way;
pawn Код:
mysql_function_query(g_connectionHandle, "SELECT * FROM Vehicles", true, "LoadVehiclesCallback", "d", id);
pawn Код:
new
rows,
fields;
cache_get_data(rows, fields, g_connectionHandle);
for(new i; i < rows; i++)
{
new carFileId = cache_get_row_int(i, 0, g_connectionHandle);
// Load stuff
}