28.06.2014, 08:57
pawn Код:
stock SaveHouse(houseid)
{
new INI:ini = INI_Open(HPath(houseid));
INI_Float("EnterX",HouseInfo[houseid][hEnterX]);
INI_WriteFloat("EnterY",HouseInfo[houseid][hEnterY]);
INI_WriteFloat("EnterZ",HouseInfo[houseid][hEnterZ]);
INI_WriteFloat("ExitX",HouseInfo[houseid][hExitX]);
INI_WriteFloat("ExitY",HouseInfo[houseid][hExitY]);
INI_WriteFloat("ExitZ",HouseInfo[houseid][hExitZ]);
INI_WriteFloat("InX",HouseInfo[houseid][hInX]);
INI_WriteFloat("InY",HouseInfo[houseid][hInY]);
INI_WriteFloat("InZ",HouseInfo[houseid][hInZ]);
INI_WriteFloat("OutX",HouseInfo[houseid][hOutX]);
INI_WriteFloat("OutY",HouseInfo[houseid][hOutY]);
INI_WriteFloat("OutZ",HouseInfo[houseid][hOutZ]);
INI_WriteInt("InsideInt",HouseInfo[houseid][hInsideInt]);
INI_WriteInt("InsideVir",HouseInfo[houseid][hInsideVir]);
INI_WriteInt("OutsideInt",HouseInfo[houseid][hOutsideInt]);
INI_WriteInt("OutsideVir",HouseInfo[houseid][hOUtsideVir]);
INI_WriteBool("Owned",HouseInfo[houseid][hOwned]);
INI_WriteString("Owner",HouseInfo[houseid][hOwner],MAX_PLAYER_NAME);
INI_Int("InCheckpoint",HouseInfo[houseid][hInCheckpoint]);
INI_Int("OutCheckpoint",HouseInfo[houseid][hOutCheckpoint]);
INI_Float("InAngle",HouseInfo[houseid][hInAngle]);
INI_Float("OutAngle",HouseInfo[houseid][hOutAngle]);
INI_WriteInt("hPrice",HouseInfo[houseid][Price]);
return 1;
}
pawn Код:
#define HPath "Houses/%d.ini"
pawn Код:
(1762) : error 001: expected token: "-string end-", but found "-identifier-"
(1762) : warning 215: expression has no effect
(1762) : error 001: expected token: ";", but found ")"
(1762) : error 029: invalid expression, assumed zero
(1762) : fatal error 107: too many error messages on one line