Raised This Month: $ Target: $400
 0% 

Task Sheduler errors


Post New Thread Reply   
 
Thread Tools Display Modes
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
Old 11-04-2013, 02:27
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: you continue
krysteksulek
Member
Join Date: Aug 2013
Location: Poland
Old 11-04-2013 , 06:50   Re: Task Sheduler errors
Reply With Quote #2

It's from here:

http://forums.alliedmods.net/showthread.php?t=1263
krysteksulek is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-04-2013 , 08:48   Re: Task Sheduler errors
Reply With Quote #3

Then post in that thread
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



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 14:29.


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