damage history
#3

Hi!

Where do you need help? Where is the problem?
By the way, I would like to change this code:
PHP код:
public OnPlayerDeath(playerid,killerid,reason)
{
    new 
str[1024];
    for(new 
i;i<MAX_DAMAGE;i++)
    {
        if(
damageInfo[i][damSource] == 1)
        {
            
format(str,sizeof str,"%sSource: %d\nPart body: %s, damage %.1f\nweapon: %d\ntime: %02d/%02d/%d - %02d:%02d:%02d\n",
            
str,damageInfo[i][damSource],damageInfo[i][damPart],damageInfo[i][damDamage],damageInfo[i][damWeapon],damageInfo[i][damTime][0], damageInfo[i][damTime][1], damageInfo[i][damTime][2], damageInfo[i][damTime][3], damageInfo[i][damTime][4], damageInfo[i][damTime][5]);
        }
    }
    
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Информация",str,"Закрыть""");
    return 
1;

It's a very better way. But you have to say where the problem is.

EDIT:
Sorry, here is a little edit. Please change this too:
PHP код:
damageInfo[nDamage[damagedid]][damPart] = bodyName
to
PHP код:
format(damageInfo[nDamage[damagedid]][damPart],16,"%s",bodyName); 
Reply


Messages In This Thread
damage history - by KeNTos - 26.03.2016, 11:51
Re: damage history - by KeNTos - 26.03.2016, 12:23
Re: damage history - by Mencent - 26.03.2016, 12:33
Re: damage history - by KeNTos - 26.03.2016, 13:36
Re: damage history - by Mencent - 26.03.2016, 13:37
Re: damage history - by KeNTos - 26.03.2016, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)