Raised This Month: $ Target: $400
 0% 

Task Sheduler errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
krysteksulek
Member
Join Date: Aug 2013
Location: Poland
Old 11-03-2013 , 21:09   Task Sheduler errors
Reply With Quote #1

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.
krysteksulek is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode