Raised This Month: $ Target: $400
 0% 

Need help on error fixing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
freamer
Member
Join Date: Nov 2005
Old 06-19-2007 , 06:29   Need help on error fixing
Reply With Quote #1

I dont get it, why can this error occur? Seems like its crashing the server after some time.
Is there any way to fix it?
line 574: new plrHealth = get_user_health(id)

L 06/19/2007 - 13:14:48: [AMXX] Run time error 4: index out of bounds
L 06/19/2007 - 13:14:48: [AMXX] [0] phpy4ngxv.sma::doDamage (line 574)
L 06/19/2007 - 13:14:48: [AMXX] Displaying debug trace (plugin "weapons.amxx")
Code:
public doDamage(id){
    if (get_cvar_num("sv_xweapons")==0){
        return PLUGIN_CONTINUE
    }
    new plrDmg = read_data(2)
    new plrWeap
    new plrPartHit
    new plrAttacker = get_user_attacker(id, plrWeap, plrPartHit)
    if (!xmp5_carrier[plrAttacker] && !xm3_carrier[plrAttacker] && !xarmor_carrier[plrAttacker] && !xkevlar_carrier[plrAttacker] && !xknife_carrier[plrAttacker] && !xrevolver_carrier[plrAttacker]){
        return PLUGIN_CONTINUE
    }
    if (!is_user_alive(id)){
        return PLUGIN_CONTINUE
    }
    new plrHealth = get_user_health(id)
    new plrNewDmg
...
freamer 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 21:29.


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