SA-MP Forums Archive
DOF2 - Saving issue - 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: DOF2 - Saving issue (/showthread.php?tid=584326)



DOF2 - Saving issue - cnoopers - 03.08.2015

Hey.
Simple code, loading works properly but there is problem with saving. After player disconnect value is not changing in file. Added print bottom that which is showing in console fine aswell. What is wrong?

OnPlayerDisconnect
Код:
	new file[64];
    GetPlayerName(playerid,file,sizeof(file));
    format(file,sizeof(file),DOF2_File(file));
	DOF2_SetInt(file, "Kills",PlayerInfo[playerid][pKills]);
	DOF2_SetInt(file, "Deaths",PlayerInfo[playerid][pDeaths]);
	DOF2_SetInt(file, "Money",PlayerInfo[playerid][pMoney]);
	DOF2_SetInt(file, "Bank",PlayerInfo[playerid][pBank]);
	DOF2_SetInt(file, "AdminLevel",PlayerInfo[playerid][pAdmin]);
	DOF2_SetInt(file, "VIP",PlayerInfo[playerid][pVIP]);
	DOF2_SetInt(file, "Job",PlayerInfo[playerid][pJob]);
	DOF2_SetInt(file, "Skin",PlayerInfo[playerid][pSkin]);



Re: DOF2 - Saving issue - Inn0cent - 03.08.2015

Maybe the file contains .ini in file name which u did not added in your format.


Re: DOF2 - Saving issue - cnoopers - 03.08.2015

Clearly, please. DOF2 creates automatically .ini for files.
It used to work but fucked up in some moment. What may be the cause?