create a new file + id
#2

Even tho I'm not understanding what you are trying to do, try this:
pawn Код:
new i = 1;
        while(fexist(HouseFile(i))) {
        i++;
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            new INI:File = INI_Open(HouseFile(i));
            INI_SetTag(File, "data");
            INI_WriteFloat(File, "PosX", x);
            INI_WriteFloat(File, "PosY", y);
            INI_WriteFloat(File, "PosZ", z);
            INI_WriteBool(File, "Owned", false);
            INI_WriteString(File, "Owner", "");
            INI_WriteInt(File, "BuyPrice", 10);
            INI_WriteInt(File, "SellPrice", 9);
            INI_WriteInt(File, "Slots", 2);
            INI_Close(File);
        }
Reply


Messages In This Thread
create a new file + id - by Stefans94 - 02.10.2011, 11:23
Re: create a new file + id - by FireCat - 02.10.2011, 11:39
Re: create a new file + id - by Pharrel - 02.10.2011, 11:43
Re: create a new file + id - by Stefans94 - 02.10.2011, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)