Raised This Month: $51 Target: $400
 12% 

Solved client_death error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karaulov
Senior Member
Join Date: Jul 2018
Old 11-06-2020 , 15:36   client_death error
Reply With Quote #1

Code:
public client_death(killer, victim, wpnindex, hitplace, TK)
{
log_message("client_death: %i / %i", killer, victim)
}
second argument anyway == 1

10 / 1
9 / 1
1 / 1
2 / 1
etc


AMXMODX 1.10 latest build

Last edited by karaulov; 11-08-2020 at 13:28.
karaulov is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 11-06-2020 , 16:46   Re: client_death error
Reply With Quote #2

1.9 AMX (((
karaulov is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 11-06-2020 , 17:17   Re: client_death error
Reply With Quote #3

dont know what error you have, but try with checking if entity is player: 'if( 1 <= killer <= 32 )' same for victim
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-07-2020 , 16:42   Re: client_death error
Reply With Quote #4

What exactly is your situation here that makes you think this is an error? Is more than one person dying when you test this?


Quote:
Originally Posted by JocAnis View Post
dont know what error you have, but try with checking if entity is player: 'if( 1 <= killer <= 32 )' same for victim
I don't see any relevance to the OP's post. Also, to check if the killer is a player, you have to check if the killer is from 1 to maxplayers, not 32.
__________________
fysiks is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 11-08-2020 , 13:27   Re: client_death error
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
What exactly is your situation here that makes you think this is an error? Is more than one person dying when you test this?




I don't see any relevance to the OP's post. Also, to check if the killer is a player, you have to check if the killer is from 1 to maxplayers, not 32.
victim always 'player 1' in AMX MODX 1.9

now I install AMX MODX 1.10 and problem solved
karaulov is offline
Reply



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 05:48.


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