INI_Open Errors
#4

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;
}
because you are using the wrong format

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
Reply


Messages In This Thread
INI_Open Errors - by wumpyc - 30.07.2013, 23:46
Re: INI_Open Errors - by Chenko - 31.07.2013, 01:22
Re: INI_Open Errors - by wumpyc - 31.07.2013, 02:55
Re: INI_Open Errors - by Glad2BeHere - 31.07.2013, 04:26
Re: INI_Open Errors - by dEcooR - 31.07.2013, 06:48

Forum Jump:


Users browsing this thread: 2 Guest(s)