Quote:
Originally Posted by Misiur
pawn Код:
for (new i = 0; i < MAX_VEHICLES; i++) { if (GetVehicleModel(i)) { format(szQuery, sizeof(szQuery), "SELECT `vid` FROM `vehicles` WHERE `vid` = '%d'", i); mysql_function_query(dbHandle, szQuery, true, "CheckExistVehicle", "d", i); } }
This might be too heavy for your database to handle (remember that database query is the most time-and-resource-eating process). It'd be better if you loaded all data from database, and then worked on cached data
|
Yes, it might be.
How can I load them all together and not one-by-one?