MC_Domkats
Дебютант
Добрый вечер. Помогите решить проблему. Небыло и вылезло. каждый юминуту забивает лог эта ошибка:
Вот сам Timer_Unix () из мода.
C++:
[20:41:58] [debug] Run time error 4: "Array index out of bounds"
[20:41:58] [debug] Attempted to read/write array element at index 500 in array of size 25
[20:41:58] [debug] AMX backtrace:
[20:41:58] [debug] #0 007759b8 in ?? () from new.amx
[20:41:58] [debug] #1 0077b280 in ?? () from new.amx
[20:41:58] [debug] #2 001c12e8 in ?? () from new.amx
[20:41:58] [debug] #3 001c059c in public Timer_Unix () from new.amx
C++:
CB: Timer_Unix() {
new tickcount1 = GetTickCount();
if(timers_unix > -1) {
unix = gettime(tmphour, tmpminute, tmpsecond);//узнаём время.
if(unix_hour <= unix) {// прошел час
new string[128];
format(string, sizeof(string), "Текущее время %d:00", tmphour);
SendClientMessageToAll(COLOR_WHITE, string);
PayDay();
SetWorldTime(tmphour);
unix_hour = unix+3600;
}
if(unix_min <= unix) {//прошла минута
minute_timer();
TimeReportBot();
unix_min = unix+60;
}
if(unix_sec <= unix) {//прошла секунда
second_timer();
game_dm();
race_game();
golod_game();
start_invets();
OnUpdateCheatPlayers();
if(BizWarTime[1]) BizWarTimer();
unix_sec = unix+1;
}
if(unix_three_sec <= unix) {//прошло 3 секунды
other_timer();
unix_three_sec = unix + 3;
}
if(unix_heal <= unix) {
heal_timer();
unix_heal = unix+240;
}
}
time_grandtimer = GetTickCount() - tickcount1;
if(time_grandtimer > time_grandtimer_max) time_grandtimer_max = time_grandtimer;
return 1;
}
Последнее редактирование модератором:
