SA-MP Forums Archive
Unix time not saving? - 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: Unix time not saving? (/showthread.php?tid=553215)



Unix time not saving? - Beckett - 28.12.2014

Alright so I'm working on a temporary system, and the thing is it's not saving the unix time? Why's that?

I've debugged to see before the saving if the variable is available with the correct unix timestamp, and it is, yet it still doesn't save it.


Thanks in advance.


Re: Unix time not saving? - Facerafter - 28.12.2014

Got the same problem.
https://sampforum.blast.hk/showthread.php?tid=553142


Re: Unix time not saving? - Ahmad45123 - 28.12.2014

Can you show the code where you save it ?


Re: Unix time not saving? - Beckett - 28.12.2014

I've already told you there's no issue with the saving, meh. Here.

pawn Код:
new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        printf("donator!!!!! %i",PlayerInfo[playerid][Donator]);
        INI_WriteInt(File,"Donator",PlayerInfo[playerid][Donator]);
INI_Close(File);



Re: Unix time not saving? - Ahmad45123 - 28.12.2014

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
I've already told you there's no issue with the saving, meh. Here.

pawn Код:
new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        printf("donator!!!!! %i",PlayerInfo[playerid][Donator]);
        INI_WriteFloat(File,"Donator",PlayerInfo[playerid][Donator]);
INI_Close(File);
Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
Alright so I'm working on a temporary system, and the thing is it's not saving the unix time? Why's that?

I've debugged to see before the saving if the variable is available with the correct unix timestamp, and it is, yet it still doesn't save it.


Thanks in advance.
:\
Then whats the problem ?


Re: Unix time not saving? - Beckett - 28.12.2014

The problem it's not saving the unix time. It's saving it as 0. While the correct value isn't 0.


Re: Unix time not saving? - Ahmad45123 - 28.12.2014

I don't really know...
But try saving it as string instead of int.


Re: Unix time not saving? - Beckett - 29.12.2014

Bump.


Re: Unix time not saving? - Beckett - 31.12.2014

Fixed by installing fixes.inc.