y_ini problem
#1

I`m trying to save the game in 3 files from game and then load it.
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"
%s is a folder with playername,like i said,,the slot1.ini is created but is empty.
Reply


Messages In This Thread
y_ini problem - by TzAkS. - 05.06.2012, 07:05
Re: y_ini problem - by HDFord - 05.06.2012, 07:45
Re: y_ini problem - by TzAkS. - 05.06.2012, 07:49
Re: y_ini problem - by TzAkS. - 06.06.2012, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)