Raised This Month: $ Target: $400
 0% 

Index out of Bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 11-27-2010 , 18:38   Index out of Bounds
Reply With Quote #1

L 11/28/2010 - 121:19: [AMXX] Displaying debug trace (plugin "JailBreak_MainMod_Core.amxx")
L 11/28/2010 - 121:19: [AMXX] Run time error 4: index out of bounds
L 11/28/2010 - 121:19: [AMXX] [0] JailBreak_MainMod_Core.sma::task_ShowDay (line 915)


PHP Code:
public task_ShowDay(id)
{
    if(
get_pcvar_num(p_DayCounter))
    {
        
set_hudmessage(255255255, -1.00.35__4.01.01.0);
        
ShowSyncHudMsg(idg_msgSyncHud"%L^n%L"id"DAY_HUD"g_iDayCounteridg_szDisplayDayName[g_iDayPassed]);
        
        if(
g_iTeam[id] == CS_TEAM_T)
            
client_printc(id"%L %L"id"PREFIX"id"DAY_MSG"g_iDayCounteridg_szDisplayDayName[g_iDayPassed]);
        
        else if(
g_iTeam[id] == CS_TEAM_CT)
            
client_printc(id"%L %L"id"PREFIX"id"DAY_GUARD"g_iDayCounteridg_szDisplayDayName[g_iDayPassed]);
    }
    
    if(
get_pcvar_num(p_CrimeSystem))
    {    
        if(
g_iCrimeName[id] == 0
            
g_iCrimeName[id] = random_num(0g_iCrime-1);
        
        if(
g_iTeam[id] == CS_TEAM_T)
            
client_printc(id"%L %L"id"PREFIX"id"CRIME_MSG"g_sCrime[g_iCrimeName[id]]);
    }


PHP Code:
new const g_szDisplayDayName[7][] =
{
    
"DAY_SUNDAY",
    
"DAY_MONDAY",
    
"DAY_TUESDAY",
    
"DAY_WEDNESDAY",
    
"DAY_THURSDAY",
    
"DAY_FRIDAY",
    
"DAY_SATURDAY"
}; 
__________________
JailBreak Mod with Plugin API ( 90% ) Public

Last edited by shuttle_wave; 11-27-2010 at 18:40.
shuttle_wave 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 11:16.


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