save system yini
#1

how should I solve problem with those two variables saving one below another.
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;
}
SOLVED!
Reply


Messages In This Thread
save system yini - by Gangasta300 - 08.04.2013, 19:03
Re: save system yini - by Pawnie - 08.04.2013, 22:44
Re: save system yini - by Sremke - 08.04.2013, 23:08
Re: save system yini - by Pawnie - 09.04.2013, 01:56
Re: save system yini - by Gangasta300 - 09.04.2013, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)