Trying to create a vehicle system
#2

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
Reply


Messages In This Thread
Trying to create a vehicle system - by oKzrh - 02.08.2012, 11:23
Re: Trying to create a vehicle system - by Misiur - 02.08.2012, 11:54
Re: Trying to create a vehicle system - by oKzrh - 02.08.2012, 11:59
Re: Trying to create a vehicle system - by Misiur - 02.08.2012, 13:12
Re: Trying to create a vehicle system - by oKzrh - 02.08.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)