08.04.2013, 19:03
(
Последний раз редактировалось Gangasta300; 09.04.2013 в 19:23.
)
how should I solve problem with those two variables saving one below another.
this is first time I got something like this...

SOLVED!
this is first time I got something like this...

Код:
forward SaveRuksak(playerid);
public SaveRuksak(playerid)
{
new INI:File = INI_Open(RuksakPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File, "Oruzje", InventoryInfo[playerid][iImeoruzja]);
INI_WriteInt(File, "Municija", InventoryInfo[playerid][iMunicija]);
INI_WriteInt(File, "Crack", InventoryInfo[playerid][iCrack]);
INI_WriteInt(File, "Marihuana", InventoryInfo[playerid][iMarihuana]);
INI_WriteInt(File, "Sjeme Marihuane", InventoryInfo[playerid][iSjemeM]);
INI_WriteInt(File, "Sjeme Koke", InventoryInfo[playerid][iSjemeK]);
INI_Close(File);
return 1;
}
Код:
forward ucitajruksak_data(playerid, name[], value[]);
public ucitajruksak_data(playerid, name[], value[])
{
INI_Int("Oruzje", InventoryInfo[playerid][iImeoruzja]);
INI_Int("Municija", InventoryInfo[playerid][iMunicija]);
INI_Int("Crack", InventoryInfo[playerid][iCrack]);
INI_Int("Marihuana", InventoryInfo[playerid][iMarihuana]);
INI_Int("Sjeme Marihuane", InventoryInfo[playerid][iSjemeM]);
INI_Int("Sjeme Koke", InventoryInfo[playerid][iSjemeK]);
return 1;
}


