Hi.
I Have error logs with Task Sheduler by JustinHoMi:
HTML Code:
L 11/04/2013 - 02:52:15: [AMXX] Displaying debug trace (plugin "task_scheduler.amxx")
L 11/04/2013 - 02:52:15: [AMXX] Run time error 4: index out of bounds
L 11/04/2013 - 02:52:15: [AMXX] [0] 311.attach::load_task (line 43)
L 11/04/2013 - 02:52:15: [AMXX] Displaying debug trace (plugin "task_scheduler.amxx")
L 11/04/2013 - 02:52:15: [AMXX] Run time error 4: index out of bounds
L 11/04/2013 - 02:52:15: [AMXX] [0] 311.attach::load_task (line 43)
L 11/04/2013 - 02:52:15: [AMXX] Displaying debug trace (plugin "task_scheduler.amxx")
Function:
HTML Code:
public load_task()
{
if (read_argc() < 4) {
server_print("[AMX] Usage: amx_task < time > ^"command^" < flags >")
return PLUGIN_HANDLED
}
new args[128]
read_args(args,128)
new clock[6], cmd[108], flags[5]
parse(args,clock,6,cmd,108,flags,5)
new Float:time_f = floatstr(clock)
new flag[2] = ""
if (contain(flags,"r") != -1)
flag="b"
if (contain(flags,"m") != -1)
time_f = time_f * 60
if (contain(flags,"t") != -1)
{
copy(task_cmds[numtasks],108,cmd)
copy(task_times[numtasks],6,clock)
numtasks++
return PLUGIN_HANDLED
}
set_task(time_f,"run_task",0,cmd,108,flag)
return PLUGIN_CONTINUE
}
Where line 43 is:
HTML Code:
copy(task_cmds[numtasks],108,cmd)
My amxx.cfg:
HTML Code:
amx_task 02:33 "amx_map de_westwood_big" t
amx_task 02:36 "amx_cvar mp_roundtime 9" t
amx_task 02:36 "amx_cvar mp_timelimit 40" t
amx_task 02:36 "amx_pausecfg enable day.amxx" t
amx_task 02:36 "amx_pausecfg save" t
amx_task 02:45 "amx_cvar mp_roundtime 2" t
amx_task 02:45 "amx_cvar mp_timelimit 20" t
amx_task 02:45 "amx_pausecfg pause day.amxx" t
amx_task 02:45 "amx_pausecfg save" t
amx_task 02:45 "amx_votenextmap" t
Please help.