05.06.2012, 07:05
I`m trying to save the game in 3 files from game and then load it.
The file is created but is empty.
%s is a folder with playername,like i said,,the slot1.ini is created but is empty.
The file is created but is empty.
pawn Код:
Slot1Saved[playerid] = 1;
new INI:File = INI_Open(SaveSlot1);
INI_SetTag(File,"data");
INI_WriteInt(File,"Boss",PlayerData[playerid][boss]);
INI_WriteInt(File,"Password",PlayerData[playerid][password]);
INI_WriteInt(File,"Level",PlayerData[playerid][level]);
INI_WriteInt(File,"Upgrade",PlayerData[playerid][upgrade]);
INI_Close(File);
pawn Код:
#define SaveSlot1 "/Drivers/%s/slot1.ini"