03.01.2014, 16:11
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:
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;
}

