[HELP] Saving gettime() to INI_WriteInt
#7

It's just about some lines ...

Set the value:
Код:
SomeInformation[1][SomeExpire] = (gettime() + ConvertToSeconds(.months = 0, .days = 7, .hours = 0, .seconds = 0));
Save the value:
Код:
INI_WriteInt(inisi1o,"SomeExpire", SomeInformation[1][SomeExpire]);
Load the value:
Код:
INI_ParseFile("SomeInfoFolder/SI1.ini", "LoadSI1_data", .bPassTag = true);
Whatever about the tag, it saves and loads everything but it does not save getttime();

__________________________________________________ __________________________________________

https://sampforum.blast.hk/showthread.php?tid=570957

Load a whole file at once:

Код:
forward LoadOneFile(tag[], name[], value[]);
public LoadOneFile(tag[], name[], value[])
{
}
Код:
INI_ParseFile("myini.ini", "LoadOneFile", .bPassTag = true);
__________________________________________________ __________________________________________

EDIT:

I leaved tag at all and tried to save and load without tag. Still does not write gettime() ...
It writes everything right but not gettime()... The value is not 0, the value is not even writed, replaced or anything...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)