String? House saving - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: String? House saving (
/showthread.php?tid=400835)
String? House saving - Nicholas. - 20.12.2012
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);
Re: String? House saving - Nicholas. - 20.12.2012
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.