Can someone explain this?
#2

PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponidbodypart)
{
    if(!
IsPlayerConnected(playerid) || !IsPlayerConnected(damagedid) || !IsValidWeapon(weaponid) || !IsValidBodyPart(bodypart))
        return 
0
PHP код:
IsValidWeapon(weaponid)
    return (
<= weaponid <= 46) && !(19 <= weaponid <= 21) ? true false;
IsValidBodyPart(bodypart)
    return (
<= bodypart <= 9) ? true false
It should solve your problem.
Reply


Messages In This Thread
Can someone explain this? - by Sjn - 02.05.2017, 16:30
Re: Can someone explain this? - by Dayrion - 02.05.2017, 18:41
Re: Can someone explain this? - by Vince - 02.05.2017, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)