Unix time not saving?
#1

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.
Reply
#2

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

Can you show the code where you save it ?
Reply
#4

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

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 ?
Reply
#6

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

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

Bump.
Reply
#9

Fixed by installing fixes.inc.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)