28.12.2014, 12:57
(
Last edited by Facerafter; 29/12/2014 at 02:58 PM.
)
<FIXED>
SaveAccount(playerid)
{
print("Save started");
new INI:File = INI_Open(Path(playerid));
print("File opened");
printf("* Value check: %i",PlayerInfo[playerid][pTempBanned]); // Works
INI_WriteInt(File,"TempBanned", PlayerInfo[playerid][pTempBanned]);
print("Written the value in file");
INI_Close(File);
print("Saved"); // Doesn't work
return 1;
}
[15:13:28] File opened [15:13:28] * Value check: 1419790408
You aren't setting the tag. Can you show me your registration code? So I can provide the same and valid tag.
|
SaveAccount(playerid) { print("Save started"); new INI:File = INI_Open(Path(playerid)); INI_SetTag(File,"data"); // The tag? printf("%i",PlayerInfo[playerid][pTempBanned]); // Works INI_WriteInt(File,"TempBanned", PlayerInfo[playerid][pTempBanned]); INI_Close(File); print("Saved"); // Doesn't work return 1; }
SaveAccount(playerid) { print("Save started"); new INI:File = INI_Open(Path(playerid)); INI_SetTag(File, "data"); print("File opened"); printf("* Value check: %i",PlayerInfo[playerid][pTempBanned]); // Works INI_WriteInt(File,"TempBanned", PlayerInfo[playerid][pTempBanned]); print("Written the value in file"); INI_Close(File); print("Saved"); // Doesn't work return 1; }