Raised This Month: $ Target: $400
 0% 

get_user_attacker returns wrong id [PARTLY SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lt Llama
Senior Member
Join Date: Aug 2004
Old 10-04-2006 , 16:24   Re: get_user_attacker returns wrong id
Reply With Quote #10

Quote:
Originally Posted by XxAvalanchexX View Post
Try this and see what it says the classname is for the entities above 32:

Code:
new bum = get_user_attacker(id), classname[32] if(is_valid_ent(bum)) entity_get_string(bum,EV_SZ_classname,classname,31) else classname = "null" client_print(0,print_chat, "DEBUG: Bum id = %d (%s), Victim id = %d",bum,classname,id)
Huh! This is what it returns

Whats returned with XxAvalanchexX code


It thinks the attacker is a tf_rpg_rocket when it should return the player id i guess. As no second or third argument is there it SHOULD return the id according to
http://www.amxmodx.org/funcwiki.php?...cker&go=search.

And now i used

Code:
register_event("Damage", "Event_Damage","b","2!0");
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.
Lt Llama 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 04:50.


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