Quote:
Originally Posted by HDFord
It's not possible to use something else then "playerid" on GameTextForPlayer easy as that change it to SendClientMessage
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(issuerid != INVALID_PLAYER_ID) { new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME]; new weaponname[24]; GetPlayerName(playerid, victim, sizeof (victim)); GetPlayerName(issuerid, attacker, sizeof (attacker)); GetWeaponName(weaponid, weaponname, sizeof (weaponname)); format(string, sizeof(string), " %.0f",amount); SendClientMessage(victim,0xFFFFFFFF,string); } return 1; }
|
You can't use 'victim' in SendClientMessage. 'victim' isn't an integer...