Problem with y_ini
#1

I have problem with y_ini saving. I have command /createhouse and it should create file and write in it.
On my local server (home/house server) it work's, but when I put gamemode on host server(hosting) it doesn't work,
y_ini create file, but he won't write anything in there. Same thing is for apartment's, businesses and vehicles.

Here is image: http://prntscr.com/2g6doi

Here is my code:

Код:
	new INI:hFile;
	format(houseFile, sizeof(houseFile), "Kuce\%d.ini", id);

	hFile = INI_Open(houseFile);

case 1:
		{
            INI_SetTag(hFile, "data");

			INI_WriteString(hFile, "Vlasnik", "Drzava");
			INI_WriteString(hFile, "ImeKuce", "Mala Kuca");
			INI_WriteInt(hFile, "Na_Prodaju", 1);
			INI_WriteInt(hFile, "Cijena", 18500);
			INI_WriteInt(hFile, "Level", 3);
			INI_WriteFloat(hFile, "X", X);
			INI_WriteFloat(hFile, "Y", Y);
			INI_WriteFloat(hFile, "Z", Z);
			INI_WriteInt(hFile, "VW", (id + 1));
			INI_WriteFloat(hFile, "IntX", 327.9431);
			INI_WriteFloat(hFile, "IntY", 1478.3801);
			INI_WriteFloat(hFile, "IntZ", 1084.4375);
			INI_WriteInt(hFile, "IntID", 15);
			INI_WriteInt(hFile, "Novac_Vlasnika", 0);
			INI_WriteInt(hFile, "Materijali", 0);
			INI_WriteInt(hFile, "VrataKuce", 0);
			INI_WriteInt(hFile, "RentKuce", 0);
			INI_WriteInt(hFile, "CijenaRenta", 50);
			INI_WriteInt(hFile, "PareRentera", 0);
			INI_WriteInt(hFile, "KucaJeIznajmljena", 0);
			INI_WriteInt(hFile, "Destroyed", 0);

			INI_Close(hFile);

			Load_House(id);

			SendClientMessage(playerid, -1, ""KZ"Mala kuca "KC"je uspjesno napravljena");

			return true;
		}
Reply


Messages In This Thread
Problem with y_ini - by ivanVU - 03.01.2014, 16:11
Re: Problem with y_ini - by ivanVU - 04.01.2014, 23:42
Re: Problem with y_ini - by Hansrutger - 04.01.2014, 23:47
Re: Problem with y_ini - by ivanVU - 05.01.2014, 00:12
Re: Problem with y_ini - by Hansrutger - 05.01.2014, 00:37
Re: Problem with y_ini - by ivanVU - 05.01.2014, 14:51
Re: Problem with y_ini - by ivanVU - 06.01.2014, 13:30
Re: Problem with y_ini - by ivanVU - 07.01.2014, 18:36
Re: Problem with y_ini - by Scrillex - 07.01.2014, 18:39
Re: Problem with y_ini - by ivanVU - 08.01.2014, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)