08.04.2013, 22:44
Make sure you have the same order inside the enum. It must go in the same order you want to save it. For example if you place the Sjeme Marihuane and after it Sjeme Koke bellow it, it will save in that order, no matter if you placed how you setted the Int.
So for example:
It's writting the int on how you setted it inside the enum, not on how you setted the save/load Y_Int
So for example:
Код:
enum pInfo
{
iMunicija, //This will be saved first
iImeoruzja //This will be saved second
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward SaveRuksak(playerid);
public SaveRuksak(playerid)
{
INI_WriteInt(File, "Oruzje", InventoryInfo[playerid][iImeoruzja]); //This will be saved/loaded second
INI_WriteInt(File, "Municija", InventoryInfo[playerid][iMunicija]); //This will be saved/loaded first
}

