Code LAG problem!
#1

This code can cause lag with 20 players in vehicle in one time?

Код:
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;
}
Use strickenkid mysql plugin
Reply


Messages In This Thread
Code LAG problem! - by Fab10 - 11.06.2011, 20:27
Re: Code LAG problem! - by Fab10 - 11.06.2011, 22:17
Re: Code LAG problem! - by WackoX - 11.06.2011, 22:19
Re: Code LAG problem! - by linuxthefish - 11.06.2011, 22:23
Re : Re: Code LAG problem! - by Naruto_Emilio - 11.06.2011, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)