Raised This Month: $ Target: $400
 0% 

(Help)? Run time error 4: index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
felipemilralze
Senior Member
Join Date: Jul 2011
Location: Brazil
Old 06-29-2017 , 15:37   (Help)? Run time error 4: index out of bounds
Reply With Quote #1

L 06/29/2017 - 165:03: Start of error session.
L 06/29/2017 - 165:03: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20170629.log")
L 06/29/2017 - 165:03: [AMXX] Displaying debug trace (plugin "zoa_sistema_patente.amxx")
L 06/29/2017 - 165:03: [AMXX] Run time error 4: index out of bounds
L 06/29/2017 - 165:03: [AMXX] [0] zoa_sistema_patente.sma::check_patente (line 466)
L 06/29/2017 - 165:03: [AMXX] [1] zoa_sistema_patente.sma::client_putinserver (line 24

PHP Code:
public client_putinserver(id)
{
    
check_patente(id0)
}

public 
check_patente(idsound)
{
    if(!
is_user_connected(id)) return PLUGIN_HANDLED
    
    
new name[33]
    
get_user_name(idnamecharsmax(name))
    
    if(
iPATENTE[id] < 16)
    {
        while((
iXP[id] >= XP[iPATENTE[id] + 1]))
        {
            
iPATENTE[id]++
            
            if(
sound)
            {
                
ColorChat(0GREEN"[z]Oa|^x01 Parabens,^x03 %s^x01 sua patente agora e:^x04 %s"namePATENTE[iPATENTE[id]])
                
client_cmd(0"spk ambience/lv_fruit1.wav")
            }
        }
    }
    
    if(
iPATENTE[id] > 1)
    {
        while((
iXP[id] < XP[iPATENTE[id]]))
        {
            
iPATENTE[id]--
            
            if(
sound)
            {
                
ColorChat(0GREEN"[z]Oa|^x01 Parabens,^x03 %s^x01 sua patente agora voltou para:^x04 %s"namePATENTE[iPATENTE[id]])
                
client_cmd(0"spk ambience/wolfhowl02.wav")
            }
        }
    }
    
    return 
PLUGIN_HANDLED

felipemilralze is offline
Send a message via MSN to felipemilralze Send a message via Skype™ to felipemilralze
 



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 22:50.


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