25.09.2012, 07:32
It was included in the first post of the thread.
How would I make sure it loads properly using INI_ParseFile?
pawn Код:
forward LoadHouse_data(houseid,name[],value[]);
public LoadHouse_data(houseid,name[],value[])
{
INI_String("HouseName",House[houseid][Name], 50);
printf("House id %d Name loaded", houseid); //Debug
INI_Float("X",House[houseid][PosX]);
INI_Float("Y",House[houseid][PosY]);
INI_Float("Z",House[houseid][PosZ]);
INI_Int("Owned",House[houseid][Owned]);
INI_String("OwnerName",House[houseid][OwnerName], 50);
INI_String("Key1",House[houseid][Key1], 50);
INI_String("Key2",House[houseid][Key2], 50);
INI_String("Key3",House[houseid][Key3], 50);
return 1;
}