Raised This Month: $ Target: $400
 0% 

get_user_attacker runtime error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 02-28-2007 , 15:38   get_user_attacker runtime error
Reply With Quote #1

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 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 00:40.


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