Y_ini INI_WriteInt won't work with timestamps
#2

I remember having this issue and the easiest fix was to edit the y_ini include.

Open up the y_ini.inc file that you use to compile and search for:

Code:
stock INI_WriteInt
Then replace this line:

Code:
valstr(str, data);
With this:

Code:
format(str, sizeof(str), "%d", data);
For whatever reason valstr can't handle numbers over 1.4 billion or so. Also, if you don't wish to edit the y_ini include then you can use the fixes include.
Reply


Messages In This Thread
Y_ini INI_WriteInt won't work with timestamps - by dominik523 - 05.10.2014, 20:36
Re: Y_ini INI_WriteInt won't work with timestamps - by Chenko - 06.10.2014, 03:13
Re: Y_ini INI_WriteInt won't work with timestamps - by dominik523 - 06.10.2014, 07:04

Forum Jump:


Users browsing this thread: 1 Guest(s)