DOF2 - Saving issue
#1

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]);
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)