y_ini problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_ini problem (
/showthread.php?tid=348363)
y_ini problem -
TzAkS. - 05.06.2012
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.
Re: y_ini problem -
HDFord - 05.06.2012
I think it is a problem with y_ini in 0.3e. Maybe the only person that can help is ******.
Re: y_ini problem -
TzAkS. - 05.06.2012
Only for this is not working,when player disconects is saving in user.ini file.
And i found something,if i make a new user and i save the game in slot1 is writing but if i reconect i can`t save it anymore.
Re: y_ini problem -
TzAkS. - 06.06.2012
Sorry for bump but i don`t know what is goin on here.