Timestamps
#1

I've recently discovered that at least my server is not capable of handling timestamps which are set far in the future. Today I was trying to set a player variable containing a timestamp 163 days away
= gettime()+(86400*163) , and here's the result:

Код:
[30.03.2014, 12:47:24] [debug] #2  0008934c in public S@@_OnDialogResponse (playerid=7, dialogid=4, response=1, listitem=0, inputtext[]=@0x01124008 "") at C:\Users\Jani\Dropbox\AT_Server_v2\gamemodes\Trucking.pwn:8171
[30.03.2014, 12:47:24] [debug] #3  0000a5b4 in public OnDialogResponse (playerid=7, dialogid=4, response=1, listitem=0, inputtext[]=@0x01124008 "") at C:\Users\Jani\Dropbox\AT_Server_v2\pawno\include\YSI\y_hooks/impl.inc:2251
[30.03.2014, 12:47:24] [debug] Run time error 4: "Array index out of bounds"
[30.03.2014, 12:47:24] [debug]   Accessing element at negative index -1
[30.03.2014, 12:47:24] [debug] Backtrace:
[30.03.2014, 12:47:24] [debug] #0  000104e8 in INI_Close (INI:file=-1) at C:\Users\Jani\Dropbox\AT_Server_v2\pawno\include\YSI\y_ini.inc:746
[30.03.2014, 12:47:24] [debug] #1  00119580 in GivePlayerCash (playerid=16, cash=5688) at C:\Users\Jani\Dropbox\AT_Server_v2\gamemodes\Trucking.pwn:16844
[30.03.2014, 12:47:24] [debug] #2  0007a4ec in public Streamer_OnPlayerEnterCP (playerid=16) at C:\Users\Jani\Dropbox\AT_Server_v2\gamemodes\Trucking.pwn:7066
[30.03.2014, 12:47:24] [debug] #3  0001b810 in public S@@_OnPlayerEnterCheckpoint (playerid=16) at C:\Users\Jani\Dropbox\AT_Server_v2\pawno\include\streamer.inc:383
[30.03.2014, 12:47:24] [debug] #4  00007e20 in public OnPlayerEnterCheckpoint (playerid=16) at C:\Users\Jani\Dropbox\AT_Server_v2\pawno\include\YSI\y_hooks/impl.inc:1146
[30.03.2014, 12:47:26] [debug] Run time error 4: "Array index out of bounds"
[30.03.2014, 12:47:26] [debug]   Accessing element at negative index -1
[30.03.2014, 12:47:26] [debug] Backtrace:
[30.03.2014, 12:47:26] [debug] #0  000104e8 in INI_Close (INI:file=-1) at C:\Users\Jani\Dropbox\AT_Server_v2\pawno\include\YSI\y_ini.inc:746
My whole code just pops! Everything stops working and crashdetect spams my log full of that shit. I've confirmed the same multiple times, first setting the same variable to 3 days from today, then 50. Those work fine. Whenever it's something higher like 150 or so, the above thing happens. I see some of those debug lines are from YSI so could it be the problem and how to possibly solve it?
Reply


Messages In This Thread
Timestamps - by Jakku - 30.03.2014, 13:44
Re: Timestamps - by ev0lution - 30.03.2014, 13:58
Re: Timestamps - by Jakku - 30.03.2014, 14:01
Re: Timestamps - by Jakku - 30.03.2014, 14:15
Re: Timestamps - by Vince - 30.03.2014, 14:15
Re: Timestamps - by Jakku - 30.03.2014, 14:17
Re: Timestamps - by Konstantinos - 30.03.2014, 14:18
Re: Timestamps - by Jakku - 30.03.2014, 14:19
Re: Timestamps - by Konstantinos - 30.03.2014, 14:22
Re: Timestamps - by Jakku - 30.03.2014, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)