Doesn't save unix timestamp.
#5

Quote:
Originally Posted by biker122
View Post
You aren't setting the tag. Can you show me your registration code? So I can provide the same and valid tag.
Check the OP, I am.
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;
}
I added the tag to your code.

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;
}
Reply


Messages In This Thread
y_ini doesn't save unix timestamp. - by Facerafter - 28.12.2014, 12:57
Re: Doesn't save unix timestamp. - by biker122 - 28.12.2014, 13:25
Re: Doesn't save unix timestamp. - by Facerafter - 28.12.2014, 13:29
Re: Doesn't save unix timestamp. - by biker122 - 28.12.2014, 13:36
Re: Doesn't save unix timestamp. - by Facerafter - 28.12.2014, 13:38
Re: Doesn't save unix timestamp. - by biker122 - 28.12.2014, 13:42
Re: Doesn't save unix timestamp. - by Facerafter - 28.12.2014, 13:43
Re: Doesn't save unix timestamp. - by biker122 - 28.12.2014, 13:47
Re: Doesn't save unix timestamp. - by Facerafter - 28.12.2014, 17:09
Re: Doesn't save unix timestamp. - by Facerafter - 29.12.2014, 12:01

Forum Jump:


Users browsing this thread: 1 Guest(s)