15.08.2012, 16:29
(
Последний раз редактировалось glbracer; 15.08.2012 в 17:22.
)
This isn't the first time I've had this issue. Last time I was able to fix it, but this time I know exactly what part of the script is doing it.
The first piece of code is the problem, if I comment that out, I can compile without a problem, but if I uncomment it then Pawno stops responding. I included everything related to the first piece of code to help you help me (lol :P)
Any help (even if it's just advice) will be much appreciated.
Код:
stock LoadHouse(houseid) { new INI:File = INI_Open(HousePath(playerid)); INI_SetTag(File,"data"); format(File, 10, "/houses/%d.ini", houseid); if(!INI_Exists(File)) return 0; HouseInfo[houseid][hEnterX] = INI_Float(File, "EnterX"); HouseInfo[houseid][hEnterY] = INI_Float(File, "EnterY"); HouseInfo[houseid][hEnterZ] = INI_Float(File, "EnterZ"); HouseInfo[houseid][hExitX] = INI_Float(File, "ExitX"); HouseInfo[houseid][hExitY] = INI_Float(File, "ExitY"); HouseInfo[houseid][hExitZ] = INI_Float(File, "ExitZ"); HouseInfo[houseid][hInsideInt] = INI_Int(File, "InsideInt"); HouseInfo[houseid][hInsideVir] = INI_Int(File, "InsideVir"); HouseInfo[houseid][hOutsideInt] = INI_Int(File, "OutsideInt"); HouseInfo[houseid][hOutsideVir] = INI_Int(File, "OutsideVir"); HouseInfo[houseid][hOwned] = INI_Bool(File, "Owned"); HouseInfo[houseid][hPrice] = INI_Int(File, "Price"); INI_Close(File); return 1; }
Код:
stock HousePath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),HOUSE_PATH,playername); return string; }
Код:
enum hInfo { Float:hEnterX, Float:hEnterY, Float:hEnterZ, Float:hExitX, Float:hExitY, Float:hExitZ, hInsideInt, hInsideVir, hOutsideInt, hOutsideVir, bool:hOwned, hOwner[MAX_PLAYER_NAME], hPrice, hIcon }
Код:
#define HOUSE_PATH "/houses/%d.ini"
Код:
new HouseInfo[MAX_HOUSES][hInfo]; #define MAX_HOUSES 250
Any help (even if it's just advice) will be much appreciated.