28.12.2014, 13:38
Quote:
You aren't setting the tag. Can you show me your registration code? So I can provide the same and valid tag.
|
Code:
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; }
This is what I ran:
Code:
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; }