Problem OnPlayerGiveDamage
#3

Quote:
Originally Posted by Crystallize
Посмотреть сообщение
Код:
if(damagedid != INVALID_PLAYER_ID)
    {
        PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
        if(PlayerData[playerid][SpectateP] != -1) PlayerPlaySound(PlayerData[playerid][SpectateP],17802,0.0,0.0,0.0);
       
        new s[128];
        format(s, 128, "+ %.0f HP to %s(%d) using %s", amount, PlayerData[damagedid][Name], damagedid, GetWeaponNameEx(weaponid));
        PlayerTextDrawSetString(playerid, GiveDamage, s);
        PlayerTextDrawShow(playerid, GiveDamage);
        SetTimerEx("HideDamageTD", 2000, false, "i", playerid);
   
        format(s, 128, "- %.0f HP from %s(%d) using %s", amount, PlayerData[playerid][Name], playerid, GetWeaponNameEx(weaponid));
        PlayerTextDrawSetString(damagedid, TakeDamage, s);
        PlayerTextDrawShow(damagedid, TakeDamage);
        SetTimerEx("HideDamageTD", 2000, false, "i", damagedid);
       
        SetPlayerChatBubble(damagedid, s, 0xE81010FF, 100.0, 2000);
}
        return 1;
    }
Same error/warnings.
Reply


Messages In This Thread
Problem OnPlayerGiveDamage - by Mititel - 21.09.2016, 19:50
Re: Problem OnPlayerGiveDamage - by Crystallize - 21.09.2016, 19:53
Re: Problem OnPlayerGiveDamage - by Mititel - 22.09.2016, 17:43
Re: Problem OnPlayerGiveDamage - by Shinja - 22.09.2016, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)