Viperus
Ученик
[18:20:25] [debug] Run time error 4: "Array index out of bounds"
[18:20:25] [debug] Accessing element at negative index -1
[18:20:25] [debug] AMX backtrace:
[18:20:25] [debug] #0 001a1384 in ?? () from new.amx
[18:20:25] [debug] #1 001b5438 in public TimerUpdate () from new.amx
вот сам паблик
publics: TimerUpdate() Fresh(); SaveAccounts();
stock SaveAccounts()
{
foreach(Player,i)
if(IsPlayerConnected(i)) OnPlayerUpdateRL(i);
}
вот stock
stock Fresh()
{
if(adverttime > 0) adverttime--;
new stringdate[100],year,month,day,hours,minutes,seconds,string[100];
getdate(year, month, day);
gettime(hours, minutes, seconds);
format(stringdate, sizeof stringdate,"%d-%s%d-%s%d %02d:%02d:%02d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year, hours, minutes, seconds);
TextDrawSetString(Datum, stringdate);
new hour, minute, second;
CheckHealth();
gettime(hour, minute, second);
new tmphour,tmpminute,tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
[18:20:25] [debug] Accessing element at negative index -1
[18:20:25] [debug] AMX backtrace:
[18:20:25] [debug] #0 001a1384 in ?? () from new.amx
[18:20:25] [debug] #1 001b5438 in public TimerUpdate () from new.amx
вот сам паблик
publics: TimerUpdate() Fresh(); SaveAccounts();
stock SaveAccounts()
{
foreach(Player,i)
if(IsPlayerConnected(i)) OnPlayerUpdateRL(i);
}
вот stock
stock Fresh()
{
if(adverttime > 0) adverttime--;
new stringdate[100],year,month,day,hours,minutes,seconds,string[100];
getdate(year, month, day);
gettime(hours, minutes, seconds);
format(stringdate, sizeof stringdate,"%d-%s%d-%s%d %02d:%02d:%02d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year, hours, minutes, seconds);
TextDrawSetString(Datum, stringdate);
new hour, minute, second;
CheckHealth();
gettime(hour, minute, second);
new tmphour,tmpminute,tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
