[Duda]No Carga Casas/Autos, Etc.
#1

Hola gente, hace unos dias estaba pasando un sistema de otra web y el problema que tengo es que cuando lo pongo en mi LoadProperty compila bien, pero al abrir el sv no carga autos/casas, etc, Se que es esto porque he probado con el antiguo LoadProperty y anda, pero no guarda lo del sistema nuevo.

Code:

Код:
public LoadProperty()
{
	new arrCoords[90][128];
	new strFromFile2[512];
	new File: file = fopen("property.cfg", io_read);
	if (file)
	{
		new idx;
		while (idx < sizeof(HouseInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, ',');
			HouseInfo[idx][hOwned] = strval(arrCoords[0]);
			strmid(HouseInfo[idx][hOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
			HouseInfo[idx][hEntrancex] = floatstr(arrCoords[2]);
			HouseInfo[idx][hEntrancey] = floatstr(arrCoords[3]);
			HouseInfo[idx][hEntrancez] = floatstr(arrCoords[4]);
			HouseInfo[idx][hExitx] = floatstr(arrCoords[5]);
			HouseInfo[idx][hExity] = floatstr(arrCoords[6]);
			HouseInfo[idx][hExitz] = floatstr(arrCoords[7]);
			HouseInfo[idx][hInt] = strval(arrCoords[8]);
			HouseInfo[idx][hLevel] = strval(arrCoords[9]);
			HouseInfo[idx][hValue] = strval(arrCoords[10]);
			HouseInfo[idx][hLock] = strval(arrCoords[11]);
			HouseInfo[idx][hRooms] = strval(arrCoords[12]);
			HouseInfo[idx][hRent] = strval(arrCoords[13]);
			HouseInfo[idx][hRentabil] = strval(arrCoords[14]);
			HouseInfo[idx][hWep] = strval(arrCoords[15]);
			HouseInfo[idx][hAmmo] = strval(arrCoords[16]);
			HouseInfo[idx][hMats] = strval(arrCoords[17]);
			HouseInfo[idx][hDrugs] = strval(arrCoords[18]);
			HouseInfo[idx][hSpeed] = strval(arrCoords[19]);
			HouseInfo[idx][hEctasy] = strval(arrCoords[20]);
			HouseInfo[idx][hRitalin] = strval(arrCoords[21]);
			HouseInfo[idx][hHeroina] = strval(arrCoords[22]);
			HouseInfo[idx][hMarihuana] = strval(arrCoords[23]);
			HouseInfo[idx][hWorld] = strval(arrCoords[24]);
			HouseInfo[idx][hTime] = strval(arrCoords[25]);
			HouseInfo[idx][hMueblesPOSX][0] = floatstr(arrCoords[26]);
			HouseInfo[idx][hMueblesPOSY][0] = floatstr(arrCoords[27]);
			HouseInfo[idx][hMueblesPOSZ][0] = floatstr(arrCoords[28]);
			HouseInfo[idx][hMueblesPOSRx][0] = floatstr(arrCoords[29]);
			HouseInfo[idx][hMueblesPOSRy][0] = floatstr(arrCoords[30]);
			HouseInfo[idx][hMueblesPOSRz][0] = floatstr(arrCoords[31]);
			HouseInfo[idx][hMueblesPOSX][1] = floatstr(arrCoords[32]);
			HouseInfo[idx][hMueblesPOSY][1] = floatstr(arrCoords[33]);
			HouseInfo[idx][hMueblesPOSZ][1] = floatstr(arrCoords[34]);
			HouseInfo[idx][hMueblesPOSRx][1] = floatstr(arrCoords[35]);
			HouseInfo[idx][hMueblesPOSRy][1] = floatstr(arrCoords[36]);
			HouseInfo[idx][hMueblesPOSRz][1] = floatstr(arrCoords[37]);
			HouseInfo[idx][hMueblesPOSX][2] = floatstr(arrCoords[38]);
			HouseInfo[idx][hMueblesPOSY][2] = floatstr(arrCoords[39]);
			HouseInfo[idx][hMueblesPOSZ][2] = floatstr(arrCoords[40]);
			HouseInfo[idx][hMueblesPOSRx][2] = floatstr(arrCoords[41]);
		 	HouseInfo[idx][hMueblesPOSRy][2] = floatstr(arrCoords[42]);
		 	HouseInfo[idx][hMueblesPOSRz][2] = floatstr(arrCoords[43]);
		 	HouseInfo[idx][hMueblesPOSX][3] = floatstr(arrCoords[44]);
			HouseInfo[idx][hMueblesPOSY][3] = floatstr(arrCoords[45]);
			HouseInfo[idx][hMueblesPOSZ][3] = floatstr(arrCoords[46]);
			HouseInfo[idx][hMueblesPOSRx][3] = floatstr(arrCoords[47]);
			HouseInfo[idx][hMueblesPOSRy][3] = floatstr(arrCoords[48]);
			HouseInfo[idx][hMueblesPOSRz][3] = floatstr(arrCoords[49]);
			HouseInfo[idx][hMueblesPOSX][4] = floatstr(arrCoords[50]);
			HouseInfo[idx][hMueblesPOSY][4] = floatstr(arrCoords[51]);
			HouseInfo[idx][hMueblesPOSZ][4] = floatstr(arrCoords[52]);
			HouseInfo[idx][hMueblesPOSRx][4] = floatstr(arrCoords[53]);
			HouseInfo[idx][hMueblesPOSRy][4] = floatstr(arrCoords[54]);
			HouseInfo[idx][hMueblesPOSRz][4] = floatstr(arrCoords[55]);
			HouseInfo[idx][hMueblesPOSX][5] = floatstr(arrCoords[56]);
			HouseInfo[idx][hMueblesPOSY][5] = floatstr(arrCoords[57]);
			HouseInfo[idx][hMueblesPOSZ][5] = floatstr(arrCoords[58]);
			HouseInfo[idx][hMueblesPOSRx][5] = floatstr(arrCoords[59]);
			HouseInfo[idx][hMueblesPOSRy][5] = floatstr(arrCoords[60]);
			HouseInfo[idx][hMueblesPOSRz][5] = floatstr(arrCoords[61]);
			HouseInfo[idx][hMueblesPOSX][6] = floatstr(arrCoords[62]);
			HouseInfo[idx][hMueblesPOSY][6] = floatstr(arrCoords[63]);
			HouseInfo[idx][hMueblesPOSZ][6] = floatstr(arrCoords[64]);
			HouseInfo[idx][hMueblesPOSRx][6] = floatstr(arrCoords[65]);
			HouseInfo[idx][hMueblesPOSRy][6] = floatstr(arrCoords[66]);
			HouseInfo[idx][hMueblesPOSRz][6] = floatstr(arrCoords[67]); //
			HouseInfo[idx][hMuebles][0] = strval(arrCoords[68]);
			HouseInfo[idx][hMuebleVW][0] = strval(arrCoords[69]);
			HouseInfo[idx][hMuebleINT][0] = strval(arrCoords[70]);
			HouseInfo[idx][hMuebles][1] = strval(arrCoords[71]);
			HouseInfo[idx][hMuebleVW][1] = strval(arrCoords[72]);
			HouseInfo[idx][hMuebleINT][1] = strval(arrCoords[73]);
			HouseInfo[idx][hMuebles][2] = strval(arrCoords[74]);
			HouseInfo[idx][hMuebleVW][2] = strval(arrCoords[75]);
			HouseInfo[idx][hMuebleINT][2] = strval(arrCoords[76]);
			HouseInfo[idx][hMuebles][3] = strval(arrCoords[77]);
			HouseInfo[idx][hMuebleVW][3] = strval(arrCoords[78]);
			HouseInfo[idx][hMuebleINT][3] = strval(arrCoords[79]);
			HouseInfo[idx][hMuebles][4] = strval(arrCoords[80]);
			HouseInfo[idx][hMuebleVW][4] = strval(arrCoords[81]);
			HouseInfo[idx][hMuebleINT][4] = strval(arrCoords[82]);
			HouseInfo[idx][hMuebles][5] = strval(arrCoords[83]);
			HouseInfo[idx][hMuebleVW][5] = strval(arrCoords[84]);
			HouseInfo[idx][hMuebleINT][5] = strval(arrCoords[85]);
			HouseInfo[idx][hMuebles][6] = strval(arrCoords[86]);
			HouseInfo[idx][hMuebleVW][6] = strval(arrCoords[87]);
			HouseInfo[idx][hMuebleINT][6] = strval(arrCoords[88]);
			idx++;
		}
		printf("Gamemode: Loaded %d houses succesfully.",idx);
		fclose(file);
	}
	return 1;
}
No se cual es el problema Recurro a Ustedes porque En Otras webs No responden.
Reply
#2

No me pueden Ayudar?
Reply
#3

Men, que GM usas?
Reply
#4

Supongo que usaste LoadProperty en OnGameModeInit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)