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

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

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

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

Баг с бизнесами

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

Dima_Tushin

Компетентный
проблема с бизнесами
в Файле там где загрузка Бизнесов
PHP:
0|The State|Alhambra|No-one|1836.506958|-1682.581176|13.345100|493.593597|-22.259300|1000.679687|100000|0|0|1|17|10000|0|0|0|0|499.970245|-21.000511|1000.679687|0
0|The State|Club 'PigPen'|No-one|2421.586669|-1219.506835|25.544399|1205.132568|-10.806900|1000.921875|100000|0|0|1|2|10000|0|0|0|0|1214.932006|-13.341147|1000.921875|0
0|The State|Jizzy|No-one|-2624.485839|1411.877441|7.093800|-2636.606445|1404.987182|906.460876|100000|0|0|1|3|10000|0|0|0|0|-2653.110839|1410.075439|906.273437|0

0|The State|Misty|No-one|-2242.204101|-88.086997|35.320301|1211.982299|-27.908800|100000|0|0|1|3|10000|0|0|0|0|1207.247802|-30.094884|1000.953125|0

0|The State|Casino Rich|No-one|1658.495971|2250.045166|11.070096|1133.177978|-12.675200|1000.679687|100000|0|0|1|12|10000|0|0|0|0|1139.720703|-3.160372|1000.671875|0

0|The State|Ten Green Botlles|No-one|2309.951171|-1643.418701|14.826992|502.074401|-70.826499|998.757812|100000|0|0|1|11|10000|0|0|0|0|496.306152|-76.040191|998.757812|0

0|The State|Rst. Viaplando|No-one|2269.859375|-74.160598|26.772399|-794.806396|491.686614|1376.194946|100000|0|0|1|1|10000|0|0|0|0|-786.428100|500.082946|1371.742187|0

0|The State|Burger Shot|No-one|1199.176757|-918.167785|43.123600|364.373992|-73.821601|1001.507812|100000|0|0|1|10|10000|0|0|0|0|376.817291|-67.441162|1001.507812|0

0|The State|Burger Shot Two|No-one|810.491821|-1616.153808|13.546895|458.997894|-89.060997|999.554687|100000|0|0|1|4|10000|0|0|0|0|446.940856|-83.690391|999.554687|0

0|The State|Pizza Co.|No-one|2105.478515|-1806.372436|13.554697|371.980712|-131.172500|1001.492187|100000|0|0|1|5|10000|0|0|0|0|375.103576|-118.810775|1001.499511|0

0|The State|Cluccer Kidz Meal|No-one|-1816.642089|618.671875|35.171901|366.126007|-9.092597|1001.851623|100000|0|0|1|9|10000|0|0|0|0|369.455932|-6.018339|1001.851562|0

0|The State|Cluccer Kidz Meal Two|No-one|928.914123|-1352.792846|13.343791|376.553710|-191.183807|1000.632812|100000|0|0|1|17|10000|0|0|0|0|379.232940|-186.684234|1000.632812|0

0|The State|Candy Shop|No-one|1928.600341|-1776.170043|13.546895|-26.011999|-139.252700|1003.546875|100000|0|0|1|16|10000|0|0|0|0|-22.383369|-138.623641|1003.546875|0

0|The State|GaZZ Shop|No-one|-78.436096|-1170.033447|2.135400|-25.884500|-185.869003|1003.546875|100000|0|0|1|17|10000|0|0|0|0|-28.908708|-185.133041|1003.546875|0

0|The State|Gazgolder|No-one|-1676.181152|432.186706|7.179697|5.853199|-28.900800|1003.549377|100000|0|0|1|10|10000|0|0|0|0|2.317320|-28.982637|1003.549438|0
а когда бизнесы сохраняешь то вот
PHP:
0|The State|Alhambra|No-one|1836.506958|-1682.581176|13.345100|493.593597|-22.259300|1000.679687|100000|0|0|1|17|10000|0|0|0|0|499.970245|-21.000511|1000.679687|0
0|The State|Club 'PigPen'|No-one|2421.586669|-1219.506835|25.544399|1205.132568|-10.806900|1000.921875|100000|0|0|1|2|10000|0|0|0|0|1214.932006|-13.341147|1000.921875|0
0|The State|Jizzy|No-one|-2624.485839|1411.877441|7.093800|-2636.606445|1404.987182|906.460876|100000|0|0|1|3|10000|0|0|0|0|-2653.110839|1410.075439|906.273437|0
0|The State|Jizzy|No-one|-2624.485839|1411.877441|7.093800|-2636.606445|1404.987182|906.460876|100000|0|0|1|3|10000|0|0|0|0|-2653.110839|1410.075439|906.273437|0
0|The State|Misty|No-one|-2242.204101|-88.086997|35.320301|1211.982299|-27.908800|100000.000000|0|0|1|1|10000|0|0|0|0|1207|-30.094884|1000.953125|0.000000|0
0|The State|Misty|No-one|-2242.204101|-88.086997|35.320301|1211.982299|-27.908800|100000.000000|0|0|1|1|10000|0|0|0|0|1207|-30.094884|1000.953125|0.000000|0
0|The State|Casino Rich|No-one|1658.495971|2250.045166|11.070096|1133.177978|-12.675200|1000.679687|100000|0|0|1|12|10000|0|0|0|0|1139.720703|-3.160372|1000.671875|0
0|The State|Casino Rich|No-one|1658.495971|2250.045166|11.070096|1133.177978|-12.675200|1000.679687|100000|0|0|1|12|10000|0|0|0|0|1139.720703|-3.160372|1000.671875|0
0|The State|Ten Green Botlles|No-one|2309.951171|-1643.418701|14.826992|502.074401|-70.826499|998.757812|100000|100|0|1|11|0|0|0|0|100|496.306152|-76.040191|998.757812|0
0|The State|Ten Green Botlles|No-one|2309.951171|-1643.418701|14.826992|502.074401|-70.826499|998.757812|100000|0|0|1|11|10000|0|0|0|0|496.306152|-76.040191|998.757812|0
0|The State|Rst. Viaplando|No-one|2269.859375|-74.160598|26.772399|-794.806396|491.686614|1376.194946|100000|0|0|1|1|10000|0|0|0|0|-786.428100|500.082946|1371.742187|0
0|The State|Rst. Viaplando|No-one|2269.859375|-74.160598|26.772399|-794.806396|491.686614|1376.194946|100000|0|0|1|1|10000|0|0|0|0|-786.428100|500.082946|1371.742187|0
0|The State|Burger Shot|No-one|1199.176757|-918.167785|43.123600|364.373992|-73.821601|1001.507812|100000|0|0|1|10|10000|0|0|0|0|376.817291|-67.441162|1001.507812|0
0|The State|Burger Shot|No-one|1199.176757|-918.167785|43.123600|364.373992|-73.821601|1001.507812|100000|0|0|1|10|10000|0|0|0|0|376.817291|-67.441162|1001.507812|0
0|The State|Burger Shot Two|No-one|810.491821|-1616.153808|13.546895|458.997894|-89.060997|999.554687|100000|0|0|1|4|10000|0|0|0|0|446.940856|-83.690391|999.554687|0
вот код загрузки
PHP:
forward LoadBizz();
public LoadBizz()
{
	new arrCoords[24][64];
	new strFromFile2[256];
	new File: file = fopen("logs/bizz.cfg", io_read);
	if (file)
	{
		new idx;
		while(idx < sizeof(BizzInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, '|');
			BizzInfo[idx][bOwned] = strval(arrCoords[0]);
			strmid(BizzInfo[idx][bOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
			strmid(BizzInfo[idx][bMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
			strmid(BizzInfo[idx][bExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
			BizzInfo[idx][bEntranceX] = floatstr(arrCoords[4]);
			BizzInfo[idx][bEntranceY] = floatstr(arrCoords[5]);
			BizzInfo[idx][bEntranceZ] = floatstr(arrCoords[6]);
			BizzInfo[idx][bExitX] = floatstr(arrCoords[7]);
			BizzInfo[idx][bExitY] = floatstr(arrCoords[8]);
			BizzInfo[idx][bExitZ] = floatstr(arrCoords[9]);
			BizzInfo[idx][bBuyPrice] = strval(arrCoords[10]);
			BizzInfo[idx][bEntranceCost] = strval(arrCoords[11]);
			BizzInfo[idx][bTill] = strval(arrCoords[12]);
			BizzInfo[idx][bLocked] = strval(arrCoords[13]);
			BizzInfo[idx][bInterior] = strval(arrCoords[14]);
			BizzInfo[idx][bProducts] = strval(arrCoords[15]);
			BizzInfo[idx][bMaxProducts] = strval(arrCoords[16]);
			BizzInfo[idx][bPriceProd] = strval(arrCoords[17]);
			BizzInfo[idx][b2Till] = strval(arrCoords[18]);
			BizzInfo[idx][bCena] = strval(arrCoords[19]);
			BizzInfo[idx][bBarX] = floatstr(arrCoords[20]);
			BizzInfo[idx][bBarY] = floatstr(arrCoords[21]);
			BizzInfo[idx][bBarZ] = floatstr(arrCoords[22]);
			BizzInfo[idx][bMafia] = strval(arrCoords[23]);
			idx++;
		}
		fclose(file);
	}
	return true;
}
PHP:
stock SaveHomeSbizz()
{
	new idx;
	new File: file2;
	idx = 0;
	while (idx < sizeof(BizzInfo))
	{
		new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f|%d",//24
		BizzInfo[idx][bOwned],BizzInfo[idx][bOwner],BizzInfo[idx][bMessage],
		BizzInfo[idx][bExtortion],BizzInfo[idx][bEntranceX],BizzInfo[idx][bEntranceY],
		BizzInfo[idx][bEntranceZ],BizzInfo[idx][bExitX],BizzInfo[idx][bExitY],
		BizzInfo[idx][bExitZ],BizzInfo[idx][bBuyPrice],BizzInfo[idx][bEntranceCost],
		BizzInfo[idx][bTill],BizzInfo[idx][bLocked],BizzInfo[idx][bInterior],
		BizzInfo[idx][bProducts],BizzInfo[idx][bMaxProducts],BizzInfo[idx][bPriceProd],
		BizzInfo[idx][b2Till],BizzInfo[idx][bCena],BizzInfo[idx][bBarX],
		BizzInfo[idx][bBarY],BizzInfo[idx][bBarZ],BizzInfo[idx][bMafia]);
		if(idx == 0)
		{
			file2 = fopen("logs/rezerv/bizz.cfg", io_write);
		}
		else
		{
			file2 = fopen("logs/rezerv/bizz.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
}
PHP:
forward OnPropUpdate();
public OnPropUpdate()
{
	new idx;
	new File: file2;
	idx = 0;
	while (idx < sizeof(BizzInfo))
	{
		new coordsstring[256];
		format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f|%f|%d",
		BizzInfo[idx][bOwned],BizzInfo[idx][bOwner],BizzInfo[idx][bMessage],
		BizzInfo[idx][bExtortion],BizzInfo[idx][bEntranceX],BizzInfo[idx][bEntranceY],
		BizzInfo[idx][bEntranceZ],BizzInfo[idx][bExitX],BizzInfo[idx][bExitY],
		BizzInfo[idx][bExitZ],BizzInfo[idx][bBuyPrice],BizzInfo[idx][bEntranceCost],
		BizzInfo[idx][bTill],BizzInfo[idx][bLocked],BizzInfo[idx][bInterior],
		BizzInfo[idx][bProducts],BizzInfo[idx][bMaxProducts],BizzInfo[idx][bPriceProd],
		BizzInfo[idx][b2Till],BizzInfo[idx][bCena],BizzInfo[idx][bBarX],
		BizzInfo[idx][bBarY],BizzInfo[idx][bBarZ],BizzInfo[idx][bMafia]);
		if(idx == 0)
		{
			file2 = fopen("logs/bizz.cfg", io_write);
		}
		else
		{
			file2 = fopen("logs/bizz.cfg", io_append);
		}
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
}
Код бизнеса
PHP:
enum bInfo
{
	bOwned,
	bOwner[18],
	bMessage[128],
	bExtortion[MAX_PLAYER_NAME],
Float:bEntranceX,
Float:bEntranceY,
Float:bEntranceZ,
Float:bExitX,
Float:bExitY,
Float:bExitZ,
	bBuyPrice,
	bEntranceCost,
	bTill,
	bLocked,
	bInterior,
	bProducts,
	bMaxProducts,
	bPriceProd,
Text3D: bLabel,
	b2Till,
	bCena,
Float:bBarX,
Float:bBarY,
Float:bBarZ,
	bMafia,
	bZahvat,
	bWorld,
};
new BizzInfo[15][bInfo];


---------- Post added at 21:07 ---------- Previous post was at 21:05 ----------

Прошу помощи а то этот баг мне мешает очень и за него не могу Сервер открыть!
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу