26.03.2016, 12:33
Hi!
Where do you need help? Where is the problem?
By the way, I would like to change this code:
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:
to
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;
}
EDIT:
Sorry, here is a little edit. Please change this too:
PHP код:
damageInfo[nDamage[damagedid]][damPart] = bodyName;
PHP код:
format(damageInfo[nDamage[damagedid]][damPart],16,"%s",bodyName);