[Ayuda] textdraws
#8

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Publica el codigo de "UpdateHouses();".

Y ya intentes lo que dice mi post anterior?
No intente lo que dijiste en el post anterior ya que no lo entendн :/

Aquн esta el updatehouses
Aunque el problema no es con la entrada de la casa, la entrada de la casa solo es 1, si hay varios pickups y 3dlabels, solo uno funciona para entrar en al casa, los otros no, y para que desaparezcan los otros debo reiniciar el servidor, solo asн me queda 1 solo.

Код:
function UpdateHouses()
{
    new idx, File: file2, coordsstring[300];
	while (idx < sizeof(HouseInfo))
	{
	    HouseInfo[idx][hWorld] = idx;
	
		format(coordsstring, sizeof(coordsstring), "%d,%s,%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%f,%f,%f,%d\n",
		HouseInfo[idx][hOwned],
		HouseInfo[idx][hOwner],
		HouseInfo[idx][hEntrancex],
		HouseInfo[idx][hEntrancey],
		HouseInfo[idx][hEntrancez],
		HouseInfo[idx][hExitx],
		HouseInfo[idx][hExity],
		HouseInfo[idx][hExitz],
		HouseInfo[idx][hInt],
		HouseInfo[idx][hLevel],
		HouseInfo[idx][hValue],
		HouseInfo[idx][hLock],
		HouseInfo[idx][hRooms],
		HouseInfo[idx][hRent],
		HouseInfo[idx][hRentabil],
		HouseInfo[idx][hWep],
		HouseInfo[idx][hAmmo],
		HouseInfo[idx][hMats],
		HouseInfo[idx][hDrugs],
		HouseInfo[idx][hSpeed],
		HouseInfo[idx][hEctasy],
		HouseInfo[idx][hRitalin],
		HouseInfo[idx][hHeroina],
		HouseInfo[idx][hMarihuana],
		HouseInfo[idx][hWorld],
		HouseInfo[idx][hTime],
		HouseInfo[idx][gEntrancex],
		HouseInfo[idx][gEntrancey],
		HouseInfo[idx][gEntrancez],
		HouseInfo[idx][gLock]);

		if(idx == 0)	file2 = fopen("property.cfg", io_write);
		else			file2 = fopen("property.cfg", io_append);
		
		fwrite(file2, coordsstring);
		idx++;
		fclose(file2);
	}
	return 1;
}
Reply


Messages In This Thread
[Ayuda] textdraws - by Ivanlamega - 17.03.2015, 17:03
Respuesta: [Ayuda] textdraws - by Gabito - 17.03.2015, 21:39
Respuesta: [Ayuda] textdraws - by xSeveNx - 17.03.2015, 22:52
Re: [Ayuda] textdraws - by SickAttack - 17.03.2015, 23:43
Respuesta: [Ayuda] textdraws - by Ivanlamega - 18.03.2015, 01:22
Respuesta: [Ayuda] textdraws - by Ivanlamega - 18.03.2015, 16:51
Re: [Ayuda] textdraws - by SickAttack - 18.03.2015, 16:59
Respuesta: Re: [Ayuda] textdraws - by Ivanlamega - 18.03.2015, 18:11
Re: [Ayuda] textdraws - by SickAttack - 18.03.2015, 18:18
Respuesta: Re: [Ayuda] textdraws - by Ivanlamega - 18.03.2015, 19:32

Forum Jump:


Users browsing this thread: 2 Guest(s)