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

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

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

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

invalid function or declaration

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

Pukanus_Razorvanus

Ученик
ошибки

PHP:
C:\Users\Narek\Desktop\Мод с \gamemodes\ewr.pwn(708) : error 021: symbol already defined: "printf"
C:\Users\Narek\Desktop\Мод с \gamemodes\ewr.pwn(708 -- 841) : error 010: invalid function or declaration

весь паблик


PHP:
publics: LoadProperty()
{
	new fields;

	cache_get_data(TOTAL_HOUSE,fields,mysql_connect_ID);

	if(--TOTAL_HOUSE <= 0)
		return printf("Дома не загружены."), mysql_tquery(mysql_connect_ID,"SELECT * FROM `gzlogo`", "LoadGZLogo","");

	new h_online, h_online_arendator[2], time = GetTickCount();
	string="";

	for(new he; he <= TOTAL_HOUSE; he++)
	{
		HouseInfo[he][hID] = cache_get_field_content_int(he, "hID", mysql_connect_ID);

		HouseInfo[he][hEnter][0] = cache_get_field_content_float(he, "hEntrancex", mysql_connect_ID);
		HouseInfo[he][hEnter][1] = cache_get_field_content_float(he, "hEntrancey", mysql_connect_ID);
		HouseInfo[he][hEnter][2] = cache_get_field_content_float(he, "hEntrancez", mysql_connect_ID);

		HouseInfo[he][hExit][0] = cache_get_field_content_float(he, "hExitx", mysql_connect_ID);
		HouseInfo[he][hExit][1] = cache_get_field_content_float(he, "hExity", mysql_connect_ID);
		HouseInfo[he][hExit][2] = cache_get_field_content_float(he, "hExitz", mysql_connect_ID);

		cache_get_field_content(he, "hOwner", HouseInfo[he][hOwner], mysql_connect_ID, strlen(HouseInfo[he][hOwner]));

		HouseInfo[he][hValue] = cache_get_field_content_int(he, "hValue", mysql_connect_ID);
		HouseInfo[he][hHel] = cache_get_field_content_int(he, "hHel", mysql_connect_ID);
		HouseInfo[he][hInt] = cache_get_field_content_int(he, "hInt", mysql_connect_ID);
		HouseInfo[he][hLock] = cache_get_field_content_int(he, "hLock", mysql_connect_ID);
		HouseInfo[he][hOwned] = cache_get_field_content_int(he, "hOwned", mysql_connect_ID);
		HouseInfo[he][hKlass] = cache_get_field_content_int(he, "hKlass", mysql_connect_ID);
		HouseInfo[he][hVehSost] = cache_get_field_content_int(he, "hVehSost", mysql_connect_ID);

		HouseInfo[he][hCar][0] = cache_get_field_content_float(he, "hCarx", mysql_connect_ID);
		HouseInfo[he][hCar][1] = cache_get_field_content_float(he, "hCary", mysql_connect_ID);
		HouseInfo[he][hCar][2] = cache_get_field_content_float(he, "hCarz", mysql_connect_ID);
		HouseInfo[he][hCar][3] = cache_get_field_content_float(he, "hCarc", mysql_connect_ID);

		HouseInfo[he][hStyle] = cache_get_field_content_int(he, "hStyle", mysql_connect_ID);
		HouseInfo[he][hSafe] = cache_get_field_content_int(he, "hSafe", mysql_connect_ID);
		HouseInfo[he][hNarko] = cache_get_field_content_int(he, "hNarko", mysql_connect_ID);

		HouseInfo[he][hGun][0] = cache_get_field_content_int(he, "hGun1", mysql_connect_ID);
		HouseInfo[he][hGun][1] = cache_get_field_content_int(he, "hGun2", mysql_connect_ID);
		HouseInfo[he][hGun][2] = cache_get_field_content_int(he, "hGun3", mysql_connect_ID);
		HouseInfo[he][hGun][3] = cache_get_field_content_int(he, "hGun4", mysql_connect_ID);
		HouseInfo[he][hGun][4] = cache_get_field_content_int(he, "hGun5", mysql_connect_ID);

		HouseInfo[he][hGunAmmo][0] = cache_get_field_content_int(he, "hGunAmmo1", mysql_connect_ID);
		HouseInfo[he][hGunAmmo][1] = cache_get_field_content_int(he, "hGunAmmo2", mysql_connect_ID);
		HouseInfo[he][hGunAmmo][2] = cache_get_field_content_int(he, "hGunAmmo3", mysql_connect_ID);
		HouseInfo[he][hGunAmmo][3] = cache_get_field_content_int(he, "hGunAmmo4", mysql_connect_ID);
		HouseInfo[he][hGunAmmo][4] = cache_get_field_content_int(he, "hGunAmmo5", mysql_connect_ID);

		HouseInfo[he][hGarage]  = cache_get_field_content_int(he, "hGarage", mysql_connect_ID);

		HouseInfo[he][hEat][0]  = cache_get_field_content_int(he, "hEat1", mysql_connect_ID);
		HouseInfo[he][hEat][1]  = cache_get_field_content_int(he, "hEat2", mysql_connect_ID);
		HouseInfo[he][hEat][2]  = cache_get_field_content_int(he, "hEat3", mysql_connect_ID);
		HouseInfo[he][hEat][3]  = cache_get_field_content_int(he, "hEat4", mysql_connect_ID);
		HouseInfo[he][hEat][4]  = cache_get_field_content_int(he, "hEat5", mysql_connect_ID);

		cache_get_field_content(he, "hRent", HouseInfo[he][hRent], mysql_connect_ID, strlen(HouseInfo[he][hRent]));
		cache_get_field_content(he, "hRent1", HouseInfo[he][hRent1], mysql_connect_ID, strlen(HouseInfo[he][hRent1]));
		HouseInfo[he][hRentHouse] = cache_get_field_content_int(he, "hRentHouse", mysql_connect_ID);

		switch(HouseInfo[he][hKlass])
		{
			case 0: HouseInfo[he][hValue] = House_Fare_Class[0];
			case 1: HouseInfo[he][hValue] = House_Fare_Class[1];
			case 2: HouseInfo[he][hValue] = House_Fare_Class[2];
			case 3: HouseInfo[he][hValue] = House_Fare_Class[3];
			case 4: HouseInfo[he][hValue] = House_Fare_Class[4];
			case 5: HouseInfo[he][hValue] = House_Fare_Class[5];
		}

		h_online = cache_get_field_content_int(he, "h_online", mysql_connect_ID);
		h_online_arendator[0] = cache_get_field_content_int(he, "h_online_arendator", mysql_connect_ID);
		h_online_arendator[1] = cache_get_field_content_int(he, "h_online_arendator_1", mysql_connect_ID);

		if(h_online_arendator[0] && strcmp(HouseInfo[he][hRent], "-", true) && getdate() >= h_online_arendator[0]+3)
		{
			mysql_format(mysql_connect_ID,string,164,"UPDATE `accounts` SET `pArendaHouse` = '-1',`pText` = '2' WHERE `Name` = '%s'",HouseInfo[he][hRent]);
			mysql_empty(mysql_connect_ID, string);
			mysql_format(mysql_connect_ID,string,126,"UPDATE `house` SET `h_online_arendator` = '0' WHERE `hID` = '%i'",HouseInfo[he][hID]);
			mysql_empty(mysql_connect_ID, string);
		}
		else if(h_online_arendator[1] && strcmp(HouseInfo[he][hRent1], "-", true) && getdate() >= h_online_arendator[1]+3)
		{
			mysql_format(mysql_connect_ID,string,164,"UPDATE `accounts` SET `pArendaHouse` = '-1',`pText` = '2' WHERE `Name` = '%s'",HouseInfo[he][hRent1]);
			mysql_empty(mysql_connect_ID, string);
			mysql_format(mysql_connect_ID,string,126,"UPDATE `house` SET `h_online_arendator_1` = '0' WHERE `hID` = '%i'",HouseInfo[he][hID]);
			mysql_empty(mysql_connect_ID, string);
		}
		else if(h_online > 0 && HouseInfo[he][hOwned] && getdate() >= h_online+3)
		{
			mysql_format(mysql_connect_ID,string,164,"UPDATE `accounts` SET `pPhousekey` = '-1',`pText` = '1' WHERE `Name` = '%s'",HouseInfo[he][hOwner]);
			mysql_empty(mysql_connect_ID, string);
			strmid(HouseInfo[he][hOwner], "The State", 0, strlen("The State"), 255);
			HouseInfo[he][hHel] = 0;
			HouseInfo[he][hLock] = 1;
			HouseInfo[he][hOwned] = 0;
			HouseInfo[he][hVehSost] = 0;
			HouseInfo[he][hStyle] = 0;
			HouseInfo[he][hGarage] = 0;
			for(new d = 0; d != 5; d++) HouseInfo[he][hGun][d] = 0, HouseInfo[he][hGunAmmo][d] = 0;
			HouseInfo[he][hSafe] = 0;
			mysql_format(mysql_connect_ID,string,126,"UPDATE `house` SET `h_online` = '0' WHERE `hID` = '%i'",HouseInfo[he][hID]);
			mysql_empty(mysql_connect_ID, string);
			printf("[HOUSE №%i] %i:%i. Дом был продан государству.",HouseInfo[he][hID],h_online,getdate());
		}
		
		HouseInfo[he][LabelText][0] = CreateDynamic3DTextLabel("Выход из дома\nКлавиша: "SERVER"''ALT''", -1,HouseInfo[he][hExit][0],HouseInfo[he][hExit][1],HouseInfo[he][hExit][2]+1,9.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,HouseInfo[he][hInt],he+50);

		format(string,215,"Номер дома: {79F84B}%d"WHITE"\nГосударственная цена: {79F84B}%i$"WHITE"\nДом: {79F84B}%s"WHITE"\nПодробная информация: {79F84B}''F''",HouseInfo[he][hID],HouseInfo[he][hValue],(HouseInfo[he][hOwned]?("Занят"):("Свободен")));

		HouseInfo[he][LabelText][1] = CreateDynamic3DTextLabel(string,-1,HouseInfo[he][hEnter][0],HouseInfo[he][hEnter][1],HouseInfo[he][hEnter][2],9.0,INVALID_PLAYER_ID, INVALID_VEHICLE_ID);
		CreateDynamic3DTextLabel("Войти в бассейн\nКлавиша "SERVER"''ALT''", -1, 2475.0808,2657.0547,1508.7789,9.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,he+50);
		CreateDynamic3DTextLabel("Выйти с бассейна\nКлавиша "SERVER"''ALT''", -1, -1051.0314,453.9560,2.0479,9.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,he+50);
		CreateDynamic3DTextLabel("Выйти с подвала\nКлавиша "SERVER"''ALT''", -1, 2443.4961,2673.7556,1514.7955,9.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,he+50);
		if(HouseInfo[he][hGarage]) CreateDynamic3DTextLabel("Чтобы выйти из гаража нажмите 'ALT'", COLOR_SERVER, 1769.0474,-1897.8124,498.5519+0.8,9.0,INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, he+50), CreateDynamic3DTextLabel("Чтобы покинуть гараж\n{"#cGRAY"}Посигнальте 'H'", COLOR_SERVER, 1791.6519,-1903.4984,498.5519+0.8,9.0,INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, he+50);

		if(!HouseInfo[he][hOwned])
		{
			HouseInfo[he][hPickup] = CreateDynamicPickup(1273, 23, HouseInfo[he][hEnter][0], HouseInfo[he][hEnter][1], HouseInfo[he][hEnter][2],-1);
			HouseInfo[he][hMIcon] = CreateDynamicMapIcon(HouseInfo[he][hEnter][0], HouseInfo[he][hEnter][1], HouseInfo[he][hEnter][2], 31, COLOR_WHITE, 0, -1, -1, 200.0);
		}
		else
		{
			HouseInfo[he][hPickup] = CreateDynamicPickup(19522, 23, HouseInfo[he][hEnter][0], HouseInfo[he][hEnter][1], HouseInfo[he][hEnter][2],-1);
			HouseInfo[he][hMIcon] = CreateDynamicMapIcon(HouseInfo[he][hEnter][0], HouseInfo[he][hEnter][1], HouseInfo[he][hEnter][2], 32, COLOR_WHITE, 0, -1, -1, 200.0);
		}
	}
	printf("-> LoadProperty | Загружено %d | Time: %d (ms)",TOTAL_HOUSE,GetTickCount() - time);
	return 1;
}

Строка 708

PHP:
	new fields;

Строка 841

PHP:
	return 1;



PHP:
 * MySQL plugin R41-2
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу