AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_attacker runtime error (https://forums.alliedmods.net/showthread.php?t=52002)

bmann_420 02-28-2007 15:38

get_user_attacker runtime error
 
HTML Code:

L 02/28/2007 - 00:03:23: Invalid player id 0
L 02/28/2007 - 00:03:23: [AMXX] Displaying debug trace (plugin "amx_super.amxx")
L 02/28/2007 - 00:03:23: [AMXX] Run time error 10: native error (native "get_user_attacker")
L 02/28/2007 - 00:03:23: [AMXX]    [0] phpCJdinb.sma::on_damage (line 347)

new damage = read_data(2) //line 347

Im gettin those in this portion of code:
HTML Code:

public on_damage(id)
{
        new attacker = get_user_attacker(id)
        if ( get_cvar_float("bullet_damage") && id > 0 ) { //stop invalid player id 0
#if defined DAMAGE_RECIEVED
        // id should be connected if this message is sent, but lets check anyway
        if ( is_user_connected(id) && is_user_connected(attacker) )
        {
               

                set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
                ShowSyncHudMsg(id, g_MsgSync2, "%i^n", damage)
#else
        if ( is_user_connected(attacker) )
        {
                new damage = read_data(2)
#endif
                set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
                ShowSyncHudMsg(attacker, g_MsgSync, "%i^n", damage)
        }
}
        return PLUGIN_CONTINUE
}

It is most likely conflicting with something else, since their are about 2200 lines that plugin.

Just thought I would ask for possibilities,

Thankx

bmann_420 02-28-2007 22:31

Re: get_user_attacker runtime error
 
NM This

Its pretty obvious, sorry. Was sleepy


All times are GMT -4. The time now is 00:40.

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