11.06.2011, 20:27
This code can cause lag with 20 players in vehicle in one time?
Use strickenkid mysql plugin
Код:
public OnPlayerExitVehicle(playerid, vehicleid) { if(Car[vehicleid][vKm] > Car[vehicleid][vOldKm]) { mysql_Query("UPDATE `fr_car` SET `Km` = '%f' WHERE `fr_car`.`ID` = %d LIMIT 1", Car[vehicleid][vKm], Car[vehicleid][vID]); Car[vehicleid][vOldKm] = Car[vehicleid][vKm]; } return 1; }