15.08.2012, 20:57
Aha, found the problem.
I needed to put them like this
instead of the way it was with the = inbetween
I needed to put them like this
Код:
stock LoadHouse(houseid) { new string[10]; format(string, 10, HousePath(houseid); if(!INI_Exists(string)) return 0; INI_Float(string, "EnterX",HouseInfo[houseid][pEnterX]); INI_Float(string, "EnterY",HouseInfo[houseid][pEnterY]); INI_Float(string, "EnterZ",HouseInfo[houseid][pEnterZ]); INI_Float(string, "ExitX",HouseInfo[houseid][pExitX]); INI_Float(string, "ExitY",HouseInfo[houseid][pExitY]); INI_Float(string, "ExitZ",HouseInfo[houseid][pExitZ]); INI_Int(string, "Inside Interior",HouseInfo[houseid][pInsideInt]); INI_Int(string, "Inside Virtual World",HouseInfo[houseid][pInsideVir]); INI_Int(string, "Outside Interor",HouseInfo[houseid][hOutsideInt]); INI_Int(string, "Outside Virtual World",HouseInfo[houseid][hOutsideVir]); INI_Bool(string, "Owned",HouseInfo[houseid][hOwned]); INI_Int(string, "Price",HouseInfo[houseid][hPrice]); INI_Int(string, "Locked",HouseInfo[houseid][hLocked]); INI_Int(string, "Owner",HouseInfo[houseid][hOwner]); return 1; }