Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Багается спидометр

Статус
В этой теме нельзя размещать новые ответы.

Shker

Умник
При большом онлайне спидометр пропадает или весь или частями))
Кто знает как исправить или ок рабочий спидометр прошу помочь)

PHP:
forward UpdateSpeedometr(playerid);
public UpdateSpeedometr(playerid)
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		new vehicleid;
		vehicleid = GetPlayerVehicleID(playerid);
		new locked[32];
		if(IsLocked[GetPlayerVehicleID(playerid)] == 1)
		{
			locked = "~r~~h~Lock";
		}
		else
		{
			locked = "~h~Unlock";
		}
		format(str1, sizeof(str1),"%d",SpeedVehicle(playerid));
		if(Fuell[vehicleid] <= 45)  format(str2, sizeof(str2),"~r~%.0f",Fuell[vehicleid]);
		else if(Fuell[vehicleid] <= 100)  format(str2, sizeof(str2),"~y~%.0f",Fuell[vehicleid]);
		else if(Fuell[vehicleid] <= 300)  format(str2, sizeof(str2),"~g~%.0f",Fuell[vehicleid]);
		format(str3, sizeof(str3), "KM/H");
		format(str4, sizeof(str4), "FUEL");
		format(str5, sizeof(str5), "%s",locked);
		if(PlayerInfo[playerid][pAdmin] == 0)
		if(SpeedVehicle(playerid) >= 150)
		{
			SendClientMessage(playerid, COLOR_LIGHTRED, " Вы были кикнуты по подозрению в читерстве. (#2888)");
			SendClientMessage(playerid, COLOR_LIGHTRED, " Удалите чит программу, чтобы продолжить игру на сервере");
			Kick(playerid);
		}
		if(SpeedVehicle(playerid) !=0)
		{
			Fuell[vehicleid] -= 0.003;
			if(GetPlayerVehicleID(playerid) == caridhouse[playerid])
			{
				PlayerInfo[playerid][pFuelcar] -= 0.003;
			}
		}
		new carid = GetPlayerVehicleID(playerid);
		if(SuperGt(carid))
		{
			if(SpeedVehicle(playerid) !=0)
			{
				Fuell[vehicleid] -= 0.005;
				if(GetPlayerVehicleID(playerid) == caridhouse[playerid])
				{
					PlayerInfo[playerid][pFuelcar] -=0.005;
				}
			}
		}
		TextDrawSetString(SpeedShow[playerid],str1);
		TextDrawSetString(FuelShow[playerid],str2);
		TextDrawSetString(KMShow[playerid],str3);
		TextDrawSetString(Fill[playerid],str4);
		TextDrawSetString(StatusShow[playerid],str5);
	}
}
PHP:
STimer[playerid] = SetTimerEx("UpdateSpeedometr", Update, 1, "i", playerid);
	SpeedShow[playerid] = TextDrawCreate(374.000000, 408.000000,"~n~");
	TextDrawBackgroundColor(SpeedShow[playerid], 255);
	TextDrawAlignment(SpeedShow[playerid], 2);
	TextDrawLetterSize(SpeedShow[playerid],0.500000, 1.500000);
	TextDrawFont(SpeedShow[playerid],0);
	TextDrawColor(SpeedShow[playerid],761773823);
	TextDrawSetOutline(SpeedShow[playerid],1);
	TextDrawSetProportional(SpeedShow[playerid],1);
	TextDrawSetShadow(SpeedShow[playerid],1);

	StatusShow[playerid] = TextDrawCreate(451.000000, 414.000000, "_");
	TextDrawBackgroundColor(StatusShow[playerid], 255);
	TextDrawLetterSize(StatusShow[playerid],0.550000, 1.100000);
	TextDrawFont(StatusShow[playerid], 1);
	TextDrawColor(StatusShow[playerid], 9896191);
	TextDrawSetOutline(StatusShow[playerid], 1);
	TextDrawSetProportional(StatusShow[playerid],1);
	TextDrawSetShadow(StatusShow[playerid],1);

	KMShow[playerid] = TextDrawCreate(393.000000, 410.000000, "_");
	TextDrawBackgroundColor(KMShow[playerid], 255);
	TextDrawLetterSize(KMShow[playerid],0.379999, 0.899999);
	TextDrawFont(KMShow[playerid], 2);
	TextDrawColor(KMShow[playerid], 724790015);
	TextDrawSetOutline(KMShow[playerid], 1);
	TextDrawSetProportional(KMShow[playerid],1);
	TextDrawSetShadow(KMShow[playerid],1);

	FuelShow[playerid] = TextDrawCreate(445.000000, 399.000000, "_");
	TextDrawBackgroundColor(FuelShow[playerid], 255);
	TextDrawLetterSize(FuelShow[playerid],0.500000, 1.000000);
	TextDrawFont(FuelShow[playerid], 0);
	TextDrawColor(FuelShow[playerid], -1165802241);
	TextDrawSetOutline(FuelShow[playerid], 1);
	TextDrawSetProportional(FuelShow[playerid],1);
	TextDrawSetShadow(FuelShow[playerid],1);

	Fill[playerid] = TextDrawCreate(487.000000, 396.000000, "_");
	TextDrawBackgroundColor(Fill[playerid], 255);
	TextDrawFont(Fill[playerid], 2);
	TextDrawLetterSize(Fill[playerid], 0.310000, 1.500000);
	TextDrawColor(Fill[playerid], -1677721345);
	TextDrawSetOutline(Fill[playerid], 1);
	TextDrawSetProportional(Fill[playerid], 1);
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу