31.07.2013, 04:26
pawn Код:
stock SaveHouse(houseid)
{
new file[64];
format(file, sizeof(file), "/Houses/%d.ini", houseid);
new INI:File2 = INI_Open(file);
INI_SetTag(File2, "Main");
INI_WriteFloat(File2, "EnterX", HouseInfo[houseid][hEnterX]); //line 1981
INI_WriteFloat(File2, "EnterY", HouseInfo[houseid][hEnterY]);
INI_WriteFloat(File2, "EnterZ", HouseInfo[houseid][hEnterY]);
INI_WriteFloat(File2, "ExitX", HouseInfo[houseid][hExitX]);
INI_WriteFloat(File2, "ExitY", HouseInfo[houseid][hExitY]);
INI_WriteFloat(File2, "ExitZ", HouseInfo[houseid][hExitY]);
INI_WriteInt(File2, "InsideInt", HouseInfo[houseid][hInsideInt]);
INI_WriteInt(File2, "InsideVir", HouseInfo[houseid][hInsideVir]);
INI_WriteInt(File2, "OutsideInt", HouseInfo[houseid][hOutsideInt]);
INI_WriteInt(File2, "OutsideVir", HouseInfo[houseid][hOutsideVir]);
INI_WriteInt(File2, "Price", HouseInfo[houseid][hPrice]);
INI_WriteInt(File2, "HV_Model", HouseInfo[houseid][hVecModel]);
INI_WriteFloat(File2, "HV_PosX", HouseInfo[houseid][hVecX]);
INI_WriteFloat(File2, "HV_PosY", HouseInfo[houseid][hVecY]);
INI_WriteFloat(File2, "HV_PosZ", HouseInfo[houseid][hVecZ]);
INI_WriteFloat(File2, "HV_PosA", HouseInfo[houseid][hVecA]);
INI_WriteBool(File2, "Owned", HouseInfo[houseid][hOwned]);
INI_WriteString(File2, "Owner",HouseInfo[houseid][hOwner],40);
INI_Close(File2);
return 1;
}
refer to here to learn how to properly use it...... yes it is irrelevant from what you are doing but it shows u exactly how to do it
https://sampforum.blast.hk/showthread.php?tid=352703