String? House saving
#1

Well, This doesn't work. Is there another way to doing this?

pawn Код:
new INI:File = INI_Open("Houses/%d.ini", houseid);
            INI_SetTag(File, "House's Data");
            INI_WriteInt(File,           "Owner",          HouseInfo[houseid][hOwner]);
            INI_WriteInt(File,           "Status",         HouseInfo[houseid][hStatus]);
            INI_WriteInt(File,           "Price",          HouseInfo[houseid][hPrice]);
            INI_WriteInt(File,           "Pickup",         HouseInfo[houseid][hPickup]);
            INI_WriteInt(File,           "Interior",       HouseInfo[houseid][hInterior]);
            INI_WriteInt(File,           "VirtualWorld",   HouseInfo[houseid][hVirtualWorld]);
            INI_WriteInt(File,           "Locked",         HouseInfo[houseid][hLocked]);
            INI_WriteFloat(File,         "EnterX",         HouseInfo[houseid][hEnterX]);
            INI_WriteFloat(File,         "EnterY",         HouseInfo[houseid][hEnterY]);
            INI_WriteFloat(File,         "EnterZ",         HouseInfo[houseid][hEnterZ]);
            INI_WriteFloat(File,         "ExitX",          HouseInfo[houseid][hExitX]);
            INI_WriteFloat(File,         "ExitY",          HouseInfo[houseid][hExitY]);
            INI_WriteFloat(File,         "ExitZ",          HouseInfo[houseid][hExitZ]);
            INI_Close(File);
Reply
#2

Here, I keep getting a error.
pawn Код:
new INI:File = INI_Open("Houses/%d.ini", houseid);
pawn Код:
Gamemode.pwn(1067) : warning 202: number of arguments does not match definition
So I guess I am doing it wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)