12.05.2018, 09:02
For some reason, i have problem with killing player(setting player health to 0)
There is log:
That lines:
4668
1397
In my gamemode:
10397
I don't see any mistake here, can you help?
There is log:
Код:
#0 00048ee0 in InflictDamage (playerid=5, Float:amount=0.00000, issuerid=65535, weaponid=55, bodypart=0, bool:ignore_armour=false) at pawno\include\weapon-config.inc:4668 [debug] #1 0002d92c in WC_SetPlayerHealth (playerid=5, Float:health=0.00000, Float:armour=-1.00000) at pawno\include\weapon-config.inc:1397 [debug] #2 0009d6f0 in SetPlayerHealth_test (playerid=5, Float:hp=0.00000) at \gamemodes\.pwn:10397 [debug] #3 0075a7f0 in public @_yCsethp (playerid=5, params[]=@01ec4efc "infi 0", help=0) at gamemodes\.pwn:80647 [debug] #4 0075a48c in public @yC_sethp (a=5, b[]=@01ec4efc "infi 0", c=0, i=0) at gamemodes\.pwn:80638 [debug] #5 native CallRemoteFunction () from samp-server.exe [debug] #6 0002a540 in Command_Process (playerid=5, cmdtext[]=@01ec4ec4 "/sethp", help=0) at pawno\include\YSI\y_commands.inc:2499 [debug] #7 00029c20 in ?? (... <2 arguments>) at pawno\include\YSI\y_commands.inc:2297 [debug] #8 0001118c in public OnPlayerCommandText (playerid=5, cmdtext[]=@01ec4ec4 "/sethp") at pawno\include\YSI\y_hooks/impl.inc:929
4668
Код:
if (!ignore_armour && weaponid != WEAPON_COLLISION && weaponid != WEAPON_DROWN && weaponid != WEAPON_CARPARK && (!s_DamageArmourToggle[0] || (s_DamageArmour[weaponid][0] && (!s_DamageArmourToggle[1] || ((s_DamageArmour[weaponid][1] && bodypart == 3) || (!s_DamageArmour[weaponid][1]))))))
Код:
InflictDamage(playerid, 0.0);
10397
Код:
SetPlayerHealth(playerid, hp);