View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-15-2012 , 14:22   Re: index out of bounds
Reply With Quote #2

Show definition of extra_timer and what is the value of EXTRA_CLIP. You are also using set_task incorrectly.

Something like this (untested)
PHP Code:
new Data] = { EXTRA_CLIP };
extra_timer[id][EXTRA_CLIP] = 40 // secs
check_timerData id 

public 
check_timerData] , id )
{
    new 
item Data];
    
    if ( --
extra_timerid ][ item ] > )
    {
        
set_task1.0 "check_timer" id Data sizeofData ) )
    }
    else
    {
        
extra_timerid ][ item ] = 0
    
}

__________________

Last edited by Bugsy; 04-15-2012 at 14:28.
Bugsy is online now