AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved client_death error (https://forums.alliedmods.net/showthread.php?t=328371)

karaulov 11-06-2020 15:36

client_death error
 
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

karaulov 11-06-2020 16:46

Re: client_death error
 
1.9 AMX (((

JocAnis 11-06-2020 17:17

Re: client_death error
 
dont know what error you have, but try with checking if entity is player: 'if( 1 <= killer <= 32 )' same for victim

fysiks 11-07-2020 16:42

Re: client_death error
 
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 (Post 2724013)
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.

karaulov 11-08-2020 13:27

Re: client_death error
 
Quote:

Originally Posted by fysiks (Post 2724138)
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


All times are GMT -4. The time now is 14:07.

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