Run time error 5: "Invalid memory access"
#1

Run time error 5: "Invalid memory access"

Код:
public OnGameModeInit()
{
for(new i=0; i < MAX_HOUSES; i++)
{
LoadHouse(i);
}
return 1;
}

stock LoadHouse(houseid)
{
new fstring[14];
format(fstring, sizeof(gstring), "Houses/%d.txt", houseid); 
if(!dini_Exists(fstring)) return 0;
{
HouseInfo[houseid][hEnterX] = dini_Float(fstring, "EnterX");
HouseInfo[houseid][hEnterY] = dini_Float(fstring, "EnterY");
HouseInfo[houseid][hEnterZ] = dini_Float(fstring, "EnterZ");
HouseInfo[houseid][hExitX] = dini_Float(fstring, "ExitX");
HouseInfo[houseid][hExitY] = dini_Float(fstring, "ExitY");
HouseInfo[houseid][hExitZ] = dini_Float(fstring, "ExitZ");
HouseInfo[houseid][hInsideInt] = dini_Int(fstring, "InsideInt");
HouseInfo[houseid][hInsideVir] = dini_Int(fstring, "InsideVir");
HouseInfo[houseid][hOutsideInt] = dini_Int(fstring, "OutsideInt");
HouseInfo[houseid][hOutsideVir] = dini_Int(fstring, "OutsideVir");
HouseInfo[houseid][hOwned] = dini_Bool(fstring, "Owned") ? true : false;
strmid(HouseInfo[houseid][hOwner], dini_Get(fstring, "Owner"), 0, false, strlen(dini_Get("Owner"))); 
HouseInfo[houseid][hPrice] = dini_Int(fstring, "Price");

}
return 1;
}
Reply


Messages In This Thread
Run time error 5: "Invalid memory access" - by Supermaxultraswag - 18.12.2015, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)