SA-MP Forums Archive
Weird bugs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weird bugs (/showthread.php?tid=540374)



Weird bugs - Mavis100 - 04.10.2014



What is this? When ever someone dies, they get this screen. It bugs them out that they have to restart their client. If you tp to the person, you also get bugged out and my bodypart doesnt work.


Код HTML:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
	if(issuerid != INVALID_PLAYER_ID && weaponid == 23 || weaponid == 24 || weaponid == 33 || weaponid == 22 || weaponid == 34 && bodypart == 7 || bodypart == 8)
	{
		SCM(playerid, COLOR_LIGHTRED, "DEBUG: LEGS.");
	}
    return true;
}

Anyways, if the player take damage on their head or something, the leg is still get damaged



Re: Weird bugs - Mavis100 - 04.10.2014

bump


Re: Weird bugs - Eth - 04.10.2014

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 23 || weaponid == 24 || weaponid == 33 || weaponid == 22 || weaponid == 34 && bodypart == 7 || bodypart == 8)
    {
        SCM(playerid, COLOR_LIGHTRED, "DEBUG: LEGS.");
    }
    return 1;
}
try this one


Re: Weird bugs - Mavis100 - 04.10.2014

Quote:
Originally Posted by Eth
Посмотреть сообщение
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 23 || weaponid == 24 || weaponid == 33 || weaponid == 22 || weaponid == 34 && bodypart == 7 || bodypart == 8)
    {
        SCM(playerid, COLOR_LIGHTRED, "DEBUG: LEGS.");
    }
    return 1;
}
try this one
Where is different? return 1 = true.


Re: Weird bugs - Eth - 04.10.2014

just try it if it didn't work tell me